{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 总览\n",
    "\n",
    "1. 数据的获取：从网络开源接口获取（如Tushare)\n",
    "    \n",
    "2. 数据的清洗整理\n",
    "\n",
    "3. 数据分析\n",
    "\n",
    "4. 数据的存储: HDF5, Hierarchical Data Format(HDF)是一种针对大量数据进行组织和存储的文件格式\n",
    "    "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "首先导入所需的各类library"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import pandas as pd\n",
    "\n",
    "import matplotlib.pyplot as plt\n",
    "%matplotlib inline\n",
    "import seaborn as sns\n",
    "\n",
    "import tushare as ts\n",
    "\n",
    "import warnings; warnings.simplefilter('ignore') #忽略可能会出现的警告信息，警告并不是错误，可以忽略；"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "1. 数据的获取：从开源Tushare获取"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>code</th>\n",
       "      <th>name</th>\n",
       "      <th>change</th>\n",
       "      <th>open</th>\n",
       "      <th>preclose</th>\n",
       "      <th>close</th>\n",
       "      <th>high</th>\n",
       "      <th>low</th>\n",
       "      <th>volume</th>\n",
       "      <th>amount</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>000001</td>\n",
       "      <td>上证指数</td>\n",
       "      <td>0.33</td>\n",
       "      <td>3379.4874</td>\n",
       "      <td>3379.2524</td>\n",
       "      <td>3390.3654</td>\n",
       "      <td>3409.0589</td>\n",
       "      <td>3379.4874</td>\n",
       "      <td>230092563</td>\n",
       "      <td>2963.3297</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>000002</td>\n",
       "      <td>Ａ股指数</td>\n",
       "      <td>0.33</td>\n",
       "      <td>3542.3126</td>\n",
       "      <td>3542.0655</td>\n",
       "      <td>3553.7831</td>\n",
       "      <td>3573.3622</td>\n",
       "      <td>3542.3126</td>\n",
       "      <td>229961892</td>\n",
       "      <td>2962.6335</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>000003</td>\n",
       "      <td>Ｂ股指数</td>\n",
       "      <td>-0.75</td>\n",
       "      <td>240.6952</td>\n",
       "      <td>240.7036</td>\n",
       "      <td>238.8924</td>\n",
       "      <td>241.4361</td>\n",
       "      <td>238.5940</td>\n",
       "      <td>130671</td>\n",
       "      <td>0.6962</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>000008</td>\n",
       "      <td>综合指数</td>\n",
       "      <td>0.81</td>\n",
       "      <td>2984.0121</td>\n",
       "      <td>2984.9046</td>\n",
       "      <td>3009.1900</td>\n",
       "      <td>3027.2926</td>\n",
       "      <td>2984.0121</td>\n",
       "      <td>51414770</td>\n",
       "      <td>662.2511</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>000009</td>\n",
       "      <td>上证380</td>\n",
       "      <td>-0.12</td>\n",
       "      <td>6091.0688</td>\n",
       "      <td>6095.5063</td>\n",
       "      <td>6088.4423</td>\n",
       "      <td>6135.0283</td>\n",
       "      <td>6076.8716</td>\n",
       "      <td>53131086</td>\n",
       "      <td>673.0142</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>000010</td>\n",
       "      <td>上证180</td>\n",
       "      <td>0.64</td>\n",
       "      <td>9772.6463</td>\n",
       "      <td>9760.5009</td>\n",
       "      <td>9823.2889</td>\n",
       "      <td>9882.8762</td>\n",
       "      <td>9772.6463</td>\n",
       "      <td>75416499</td>\n",
       "      <td>1199.1548</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>000011</td>\n",
       "      <td>基金指数</td>\n",
       "      <td>0.20</td>\n",
       "      <td>7279.7279</td>\n",
       "      <td>7285.0403</td>\n",
       "      <td>7299.4231</td>\n",
       "      <td>7338.2778</td>\n",
       "      <td>7279.7279</td>\n",
       "      <td>82131052</td>\n",
       "      <td>211.9984</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>000012</td>\n",
       "      <td>国债指数</td>\n",
       "      <td>0.04</td>\n",
       "      <td>182.6746</td>\n",
       "      <td>182.6575</td>\n",
       "      <td>182.7314</td>\n",
       "      <td>182.7321</td>\n",
       "      <td>182.6712</td>\n",
       "      <td>89309</td>\n",
       "      <td>0.8392</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>000016</td>\n",
       "      <td>上证50</td>\n",
       "      <td>0.84</td>\n",
       "      <td>3291.3399</td>\n",
       "      <td>3285.7602</td>\n",
       "      <td>3313.5114</td>\n",
       "      <td>3333.7504</td>\n",
       "      <td>3291.3399</td>\n",
       "      <td>31301110</td>\n",
       "      <td>617.2749</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>000017</td>\n",
       "      <td>新综指</td>\n",
       "      <td>0.33</td>\n",
       "      <td>2856.2778</td>\n",
       "      <td>2856.0766</td>\n",
       "      <td>2865.5261</td>\n",
       "      <td>2881.3119</td>\n",
       "      <td>2856.2778</td>\n",
       "      <td>220633260</td>\n",
       "      <td>2731.2883</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "     code   name  change       open   preclose      close       high  \\\n",
       "0  000001   上证指数    0.33  3379.4874  3379.2524  3390.3654  3409.0589   \n",
       "1  000002   Ａ股指数    0.33  3542.3126  3542.0655  3553.7831  3573.3622   \n",
       "2  000003   Ｂ股指数   -0.75   240.6952   240.7036   238.8924   241.4361   \n",
       "3  000008   综合指数    0.81  2984.0121  2984.9046  3009.1900  3027.2926   \n",
       "4  000009  上证380   -0.12  6091.0688  6095.5063  6088.4423  6135.0283   \n",
       "5  000010  上证180    0.64  9772.6463  9760.5009  9823.2889  9882.8762   \n",
       "6  000011   基金指数    0.20  7279.7279  7285.0403  7299.4231  7338.2778   \n",
       "7  000012   国债指数    0.04   182.6746   182.6575   182.7314   182.7321   \n",
       "8  000016   上证50    0.84  3291.3399  3285.7602  3313.5114  3333.7504   \n",
       "9  000017    新综指    0.33  2856.2778  2856.0766  2865.5261  2881.3119   \n",
       "\n",
       "         low     volume     amount  \n",
       "0  3379.4874  230092563  2963.3297  \n",
       "1  3542.3126  229961892  2962.6335  \n",
       "2   238.5940     130671     0.6962  \n",
       "3  2984.0121   51414770   662.2511  \n",
       "4  6076.8716   53131086   673.0142  \n",
       "5  9772.6463   75416499  1199.1548  \n",
       "6  7279.7279   82131052   211.9984  \n",
       "7   182.6712      89309     0.8392  \n",
       "8  3291.3399   31301110   617.2749  \n",
       "9  2856.2778  220633260  2731.2883  "
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df = ts.get_index()\n",
    "df.head(10)   #显示部分主流指数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "sz50 = ts.get_hist_data('sz50', '2020-01-01','2020-08-08')   # 以上证50指数为例"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>open</th>\n",
       "      <th>high</th>\n",
       "      <th>close</th>\n",
       "      <th>low</th>\n",
       "      <th>volume</th>\n",
       "      <th>price_change</th>\n",
       "      <th>p_change</th>\n",
       "      <th>ma5</th>\n",
       "      <th>ma10</th>\n",
       "      <th>ma20</th>\n",
       "      <th>v_ma5</th>\n",
       "      <th>v_ma10</th>\n",
       "      <th>v_ma20</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>date</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2020-08-07</th>\n",
       "      <td>3277.44</td>\n",
       "      <td>3288.79</td>\n",
       "      <td>3263.75</td>\n",
       "      <td>3219.42</td>\n",
       "      <td>489810.50</td>\n",
       "      <td>-28.45</td>\n",
       "      <td>-0.86</td>\n",
       "      <td>3288.298</td>\n",
       "      <td>3251.485</td>\n",
       "      <td>3261.159</td>\n",
       "      <td>508691.17</td>\n",
       "      <td>450339.03</td>\n",
       "      <td>539980.40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-08-06</th>\n",
       "      <td>3295.43</td>\n",
       "      <td>3311.36</td>\n",
       "      <td>3292.20</td>\n",
       "      <td>3243.65</td>\n",
       "      <td>489457.53</td>\n",
       "      <td>-0.11</td>\n",
       "      <td>-0.00</td>\n",
       "      <td>3285.416</td>\n",
       "      <td>3240.939</td>\n",
       "      <td>3265.560</td>\n",
       "      <td>496524.89</td>\n",
       "      <td>461996.12</td>\n",
       "      <td>555013.14</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-08-05</th>\n",
       "      <td>3298.14</td>\n",
       "      <td>3300.90</td>\n",
       "      <td>3292.31</td>\n",
       "      <td>3257.29</td>\n",
       "      <td>455792.84</td>\n",
       "      <td>-19.82</td>\n",
       "      <td>-0.60</td>\n",
       "      <td>3273.280</td>\n",
       "      <td>3240.130</td>\n",
       "      <td>3273.051</td>\n",
       "      <td>470851.27</td>\n",
       "      <td>468715.95</td>\n",
       "      <td>573007.48</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-08-04</th>\n",
       "      <td>3293.92</td>\n",
       "      <td>3329.56</td>\n",
       "      <td>3312.13</td>\n",
       "      <td>3279.14</td>\n",
       "      <td>625404.75</td>\n",
       "      <td>31.03</td>\n",
       "      <td>0.95</td>\n",
       "      <td>3263.494</td>\n",
       "      <td>3240.035</td>\n",
       "      <td>3279.933</td>\n",
       "      <td>466990.08</td>\n",
       "      <td>477540.42</td>\n",
       "      <td>595946.44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-08-03</th>\n",
       "      <td>3271.18</td>\n",
       "      <td>3284.79</td>\n",
       "      <td>3281.10</td>\n",
       "      <td>3251.82</td>\n",
       "      <td>482990.25</td>\n",
       "      <td>31.76</td>\n",
       "      <td>0.98</td>\n",
       "      <td>3238.246</td>\n",
       "      <td>3237.503</td>\n",
       "      <td>3283.414</td>\n",
       "      <td>413330.03</td>\n",
       "      <td>459511.92</td>\n",
       "      <td>618988.27</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "               open     high    close      low     volume  price_change  \\\n",
       "date                                                                      \n",
       "2020-08-07  3277.44  3288.79  3263.75  3219.42  489810.50        -28.45   \n",
       "2020-08-06  3295.43  3311.36  3292.20  3243.65  489457.53         -0.11   \n",
       "2020-08-05  3298.14  3300.90  3292.31  3257.29  455792.84        -19.82   \n",
       "2020-08-04  3293.92  3329.56  3312.13  3279.14  625404.75         31.03   \n",
       "2020-08-03  3271.18  3284.79  3281.10  3251.82  482990.25         31.76   \n",
       "\n",
       "            p_change       ma5      ma10      ma20      v_ma5     v_ma10  \\\n",
       "date                                                                       \n",
       "2020-08-07     -0.86  3288.298  3251.485  3261.159  508691.17  450339.03   \n",
       "2020-08-06     -0.00  3285.416  3240.939  3265.560  496524.89  461996.12   \n",
       "2020-08-05     -0.60  3273.280  3240.130  3273.051  470851.27  468715.95   \n",
       "2020-08-04      0.95  3263.494  3240.035  3279.933  466990.08  477540.42   \n",
       "2020-08-03      0.98  3238.246  3237.503  3283.414  413330.03  459511.92   \n",
       "\n",
       "               v_ma20  \n",
       "date                   \n",
       "2020-08-07  539980.40  \n",
       "2020-08-06  555013.14  \n",
       "2020-08-05  573007.48  \n",
       "2020-08-04  595946.44  \n",
       "2020-08-03  618988.27  "
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sz50.head()\n",
    "# sz50.info()\n",
    "# type(sz50)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "2. 数据的清洗整理"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "DatetimeIndex(['2020-08-07', '2020-08-06', '2020-08-05', '2020-08-04',\n",
       "               '2020-08-03', '2020-07-31', '2020-07-30', '2020-07-29',\n",
       "               '2020-07-28', '2020-07-27',\n",
       "               ...\n",
       "               '2020-01-15', '2020-01-14', '2020-01-13', '2020-01-10',\n",
       "               '2020-01-09', '2020-01-08', '2020-01-07', '2020-01-06',\n",
       "               '2020-01-03', '2020-01-02'],\n",
       "              dtype='datetime64[ns]', name='date', length=145, freq=None)"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sz50.index = pd.to_datetime(sz50.index)\n",
    "sz50.index"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "sz50.sort_values(by = 'date', ascending = True, inplace = True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>open</th>\n",
       "      <th>high</th>\n",
       "      <th>close</th>\n",
       "      <th>low</th>\n",
       "      <th>volume</th>\n",
       "      <th>price_change</th>\n",
       "      <th>p_change</th>\n",
       "      <th>ma5</th>\n",
       "      <th>ma10</th>\n",
       "      <th>ma20</th>\n",
       "      <th>v_ma5</th>\n",
       "      <th>v_ma10</th>\n",
       "      <th>v_ma20</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>date</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2020-01-02</th>\n",
       "      <td>3073.93</td>\n",
       "      <td>3107.52</td>\n",
       "      <td>3090.83</td>\n",
       "      <td>3073.93</td>\n",
       "      <td>500363.91</td>\n",
       "      <td>27.61</td>\n",
       "      <td>0.90</td>\n",
       "      <td>3049.244</td>\n",
       "      <td>3024.357</td>\n",
       "      <td>2996.375</td>\n",
       "      <td>364506.36</td>\n",
       "      <td>305384.85</td>\n",
       "      <td>296980.15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-01-03</th>\n",
       "      <td>3097.25</td>\n",
       "      <td>3097.41</td>\n",
       "      <td>3078.28</td>\n",
       "      <td>3072.11</td>\n",
       "      <td>371854.94</td>\n",
       "      <td>-12.55</td>\n",
       "      <td>-0.41</td>\n",
       "      <td>3062.572</td>\n",
       "      <td>3030.414</td>\n",
       "      <td>3004.191</td>\n",
       "      <td>392765.70</td>\n",
       "      <td>315641.25</td>\n",
       "      <td>304340.64</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-01-06</th>\n",
       "      <td>3062.28</td>\n",
       "      <td>3090.84</td>\n",
       "      <td>3056.84</td>\n",
       "      <td>3040.19</td>\n",
       "      <td>477078.28</td>\n",
       "      <td>-21.44</td>\n",
       "      <td>-0.70</td>\n",
       "      <td>3070.384</td>\n",
       "      <td>3034.835</td>\n",
       "      <td>3010.042</td>\n",
       "      <td>419340.81</td>\n",
       "      <td>338256.85</td>\n",
       "      <td>317502.76</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-01-07</th>\n",
       "      <td>3063.75</td>\n",
       "      <td>3080.27</td>\n",
       "      <td>3074.02</td>\n",
       "      <td>3061.56</td>\n",
       "      <td>343717.88</td>\n",
       "      <td>17.18</td>\n",
       "      <td>0.56</td>\n",
       "      <td>3072.638</td>\n",
       "      <td>3043.813</td>\n",
       "      <td>3017.091</td>\n",
       "      <td>400751.09</td>\n",
       "      <td>345178.62</td>\n",
       "      <td>322171.61</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2020-01-08</th>\n",
       "      <td>3058.36</td>\n",
       "      <td>3058.70</td>\n",
       "      <td>3037.85</td>\n",
       "      <td>3030.10</td>\n",
       "      <td>376537.72</td>\n",
       "      <td>-36.17</td>\n",
       "      <td>-1.18</td>\n",
       "      <td>3067.564</td>\n",
       "      <td>3047.921</td>\n",
       "      <td>3022.134</td>\n",
       "      <td>413910.55</td>\n",
       "      <td>360556.94</td>\n",
       "      <td>330875.45</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "               open     high    close      low     volume  price_change  \\\n",
       "date                                                                      \n",
       "2020-01-02  3073.93  3107.52  3090.83  3073.93  500363.91         27.61   \n",
       "2020-01-03  3097.25  3097.41  3078.28  3072.11  371854.94        -12.55   \n",
       "2020-01-06  3062.28  3090.84  3056.84  3040.19  477078.28        -21.44   \n",
       "2020-01-07  3063.75  3080.27  3074.02  3061.56  343717.88         17.18   \n",
       "2020-01-08  3058.36  3058.70  3037.85  3030.10  376537.72        -36.17   \n",
       "\n",
       "            p_change       ma5      ma10      ma20      v_ma5     v_ma10  \\\n",
       "date                                                                       \n",
       "2020-01-02      0.90  3049.244  3024.357  2996.375  364506.36  305384.85   \n",
       "2020-01-03     -0.41  3062.572  3030.414  3004.191  392765.70  315641.25   \n",
       "2020-01-06     -0.70  3070.384  3034.835  3010.042  419340.81  338256.85   \n",
       "2020-01-07      0.56  3072.638  3043.813  3017.091  400751.09  345178.62   \n",
       "2020-01-08     -1.18  3067.564  3047.921  3022.134  413910.55  360556.94   \n",
       "\n",
       "               v_ma20  \n",
       "date                   \n",
       "2020-01-02  296980.15  \n",
       "2020-01-03  304340.64  \n",
       "2020-01-06  317502.76  \n",
       "2020-01-07  322171.61  \n",
       "2020-01-08  330875.45  "
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sz50.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x2a4ec1a8278>"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAmAAAAF2CAYAAADJDCTLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAIABJREFUeJzs3Xd4XOWV+PHvO5qRRr13uUlyxcYVd2wDJhhCAgmQOBASsoSeTSEhu9lsQsiGNDbJj2xCCCQQWiih92ob2xhXjLtsq9iyeh31UZl5f3/cK3lkq2s0M5LO53n82Lr3zr3vXMnS0XnPPa/SWiOEEEIIIXzH4u8BCCGEEEKMNxKACSGEEEL4mARgQgghhBA+JgGYEEIIIYSPSQAmhBBCCOFjEoAJIYQQQviYBGBCiHFPKbVGKVU0zHOcr5Q66q0xDYdS6kGl1E98fM3JSimtlLL68rpCjFbyH0WIYVJKXQHc1cOuN4EngX/2sK9Ua32NUmoNsAFo9th3h9b6MfPcccDfgc8AVcCPtNb/NPe9AsT3cO6rgVuBtT3suxcIHsZ4e72m1rrMHNe1wOVa62uVUjea10o33+NuYD0QCxzu4Tx2YLPW+kKl1A3me2/x2H+51nqTeZ3JwKPAEqAQ+JbW+v0ezol5/GLgZ8BywA3kAn/RWj/a22sGQ2u9BZjujXOdSSm1CVgKdABOYDPG10lpL2O5dYTGMQ3ja+gCwAacBP4B3D9C19PAVK117kicXwh/kgBMiOFLBX7m+cNfKRUB/AkIAzZprf/b8wVKqec9PizRWmf0cu4/A21AMjAPeEMptU9rfQho11qvPOO8/4sRxMwA1mitOzz2XW6exz6M8fZ1zU6XAW8qpVYDvwTWaa33msHk5wC01oVAxBnnmQNsM1/T6eMzr+fhaeBj83qXAc8rpaZqrSvPPFAptQx4D/gf4GtANbAA+A+MIG40+JbW+m/mfXwe+ANGMNuNUipIa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LeuDTA5cAoM3seeALvRbZ/l/buRHGKjOIXGsUrMopf6BSz8Cl2Hg1BhsnP3B3QD5jnH64CbgLGAuudc+Wwfyy7W1KcIqP4hUbxioziFzrFLHzdPXbqAQtfC5AM7ATG+dn6D/G6S99ofdGI4hQhxS80ildkFL/QKWbh69ax02bcETCz44C3/NtDzrkHY9ykQFKcIqP4hUbxioziFzrFLHzdOXZKwCLgr8y4GG9VRn2s2xNUilNkFL/QKF6RUfxCp5iFrzvHTgmYiIiISJRpDpiIiIhIlCkBExEREYkyJWAiIiIiUaYETERERCTKlICJSNwys9vM7DuHuf9sMxsdzTaJiIASMBHp3s4GlICJSNSpDIWIxBUz+wFwCbAZb3+5JcBe4CogBViDV3doAvC8f99e4Iv+Q9wL9AFqgSudcx9Es/0i0j0oARORuGFmk4GHgal4e90uBX6HV2G7wj/nDmC7c+43ZvYw8Lxz7i/+fS8BVzvnPjKzqcDPnHNzov9MRCTeaTNuEYknM4BnnHO1AGbWusHvWD/xygGygBcPvdDMsoBpwJ/NrPVw6lFvsYh0S0rARCTetNWt/zBwtnNuuZldBsxq45wEYI9zbsLRa5qIiEeT8EUknrwGnGNm6WaWDZzlH88GtppZMvDlg86v8u/DOVcJrDez8wDMMz56TReR7kRzwEQkrhw0CX8jUAa8D9QA3/WPrQCynXOXmdl04H6gHjgXaAF+CwwAkoEnnXM/jvqTEJG4pwRMREREJMo0BCkiIiISZUrARERERKJMCZiIiIhIlCkBExEREYkyJWAiIiIiUaYETERERCTKlICJiIiIRJkSMBEREZEo+/9Svmz2e0HUKwAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 720x432 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "sz50['close'].plot(figsize = (10,6), grid = True, title = '上证50收盘价格表/SZ50 Closing Price Chart')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "获取龙虎榜数据："
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>code</th>\n",
       "      <th>name</th>\n",
       "      <th>pchange</th>\n",
       "      <th>amount</th>\n",
       "      <th>buy</th>\n",
       "      <th>sell</th>\n",
       "      <th>reason</th>\n",
       "      <th>bratio</th>\n",
       "      <th>sratio</th>\n",
       "      <th>date</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>000411</td>\n",
       "      <td>英特集团</td>\n",
       "      <td>10.0076</td>\n",
       "      <td>15535.62</td>\n",
       "      <td>9713.30</td>\n",
       "      <td>5822.32</td>\n",
       "      <td>日振幅值达到15%的前五只证券</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.05</td>\n",
       "      <td>2020-08-10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>000411</td>\n",
       "      <td>英特集团</td>\n",
       "      <td>10.0076</td>\n",
       "      <td>15535.62</td>\n",
       "      <td>9713.30</td>\n",
       "      <td>5822.32</td>\n",
       "      <td>日涨幅偏离值达到7%的前五只证券</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.05</td>\n",
       "      <td>2020-08-10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>000411</td>\n",
       "      <td>英特集团</td>\n",
       "      <td>10.0076</td>\n",
       "      <td>26193.84</td>\n",
       "      <td>14739.65</td>\n",
       "      <td>11454.19</td>\n",
       "      <td>连续三个交易日内，涨幅偏离值累计达到20%的证券</td>\n",
       "      <td>0.06</td>\n",
       "      <td>0.05</td>\n",
       "      <td>2020-08-10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>000411</td>\n",
       "      <td>英特集团</td>\n",
       "      <td>10.0076</td>\n",
       "      <td>15535.62</td>\n",
       "      <td>9713.30</td>\n",
       "      <td>5822.32</td>\n",
       "      <td>日换手率达到20%的前五只证券</td>\n",
       "      <td>0.08</td>\n",
       "      <td>0.05</td>\n",
       "      <td>2020-08-10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>000501</td>\n",
       "      <td>鄂武商A</td>\n",
       "      <td>-8.3501</td>\n",
       "      <td>36848.20</td>\n",
       "      <td>15010.22</td>\n",
       "      <td>21837.98</td>\n",
       "      <td>日跌幅偏离值达到7%的前五只证券</td>\n",
       "      <td>0.13</td>\n",
       "      <td>0.19</td>\n",
       "      <td>2020-08-10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>000516</td>\n",
       "      <td>国际医学</td>\n",
       "      <td>10.0478</td>\n",
       "      <td>19682.64</td>\n",
       "      <td>12952.77</td>\n",
       "      <td>6729.86</td>\n",
       "      <td>日涨幅偏离值达到7%的前五只证券</td>\n",
       "      <td>0.16</td>\n",
       "      <td>0.08</td>\n",
       "      <td>2020-08-10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>000571</td>\n",
       "      <td>*ST大洲</td>\n",
       "      <td>4.89</td>\n",
       "      <td>7530.10</td>\n",
       "      <td>5258.08</td>\n",
       "      <td>2272.02</td>\n",
       "      <td>异常期间价格涨幅偏离值累计达到15.39%</td>\n",
       "      <td>0.39</td>\n",
       "      <td>0.17</td>\n",
       "      <td>2020-08-10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>000571</td>\n",
       "      <td>*ST大洲</td>\n",
       "      <td>4.89</td>\n",
       "      <td>7530.10</td>\n",
       "      <td>5258.08</td>\n",
       "      <td>2272.02</td>\n",
       "      <td>连续三个交易日内，涨幅偏离值累计达到12%的ST证券、*ST证券和未完成股改证券</td>\n",
       "      <td>0.39</td>\n",
       "      <td>0.17</td>\n",
       "      <td>2020-08-10</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "     code   name  pchange    amount       buy      sell  \\\n",
       "0  000411   英特集团  10.0076  15535.62   9713.30   5822.32   \n",
       "1  000411   英特集团  10.0076  15535.62   9713.30   5822.32   \n",
       "2  000411   英特集团  10.0076  26193.84  14739.65  11454.19   \n",
       "3  000411   英特集团  10.0076  15535.62   9713.30   5822.32   \n",
       "4  000501   鄂武商A  -8.3501  36848.20  15010.22  21837.98   \n",
       "5  000516   国际医学  10.0478  19682.64  12952.77   6729.86   \n",
       "6  000571  *ST大洲     4.89   7530.10   5258.08   2272.02   \n",
       "7  000571  *ST大洲     4.89   7530.10   5258.08   2272.02   \n",
       "\n",
       "                                     reason bratio sratio        date  \n",
       "0                           日振幅值达到15%的前五只证券   0.08   0.05  2020-08-10  \n",
       "1                          日涨幅偏离值达到7%的前五只证券   0.08   0.05  2020-08-10  \n",
       "2                  连续三个交易日内，涨幅偏离值累计达到20%的证券   0.06   0.05  2020-08-10  \n",
       "3                           日换手率达到20%的前五只证券   0.08   0.05  2020-08-10  \n",
       "4                          日跌幅偏离值达到7%的前五只证券   0.13   0.19  2020-08-10  \n",
       "5                          日涨幅偏离值达到7%的前五只证券   0.16   0.08  2020-08-10  \n",
       "6                     异常期间价格涨幅偏离值累计达到15.39%   0.39   0.17  2020-08-10  \n",
       "7  连续三个交易日内，涨幅偏离值累计达到12%的ST证券、*ST证券和未完成股改证券   0.39   0.17  2020-08-10  "
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "top_list = ts.top_list('2020-08-10')\n",
    "top_list.head(8)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "top_list_stockcode = top_list['code'].unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "83"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(top_list_stockcode)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "3. 数据分析：选股条件分析"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 获取股票代码\n",
    "sz50 = ts.get_sz50s()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>date</th>\n",
       "      <th>code</th>\n",
       "      <th>name</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2020-08-10</td>\n",
       "      <td>600000</td>\n",
       "      <td>浦发银行</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2020-08-10</td>\n",
       "      <td>600009</td>\n",
       "      <td>上海机场</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2020-08-10</td>\n",
       "      <td>600016</td>\n",
       "      <td>民生银行</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2020-08-10</td>\n",
       "      <td>600028</td>\n",
       "      <td>中国石化</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2020-08-10</td>\n",
       "      <td>600030</td>\n",
       "      <td>中信证券</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "         date    code  name\n",
       "0  2020-08-10  600000  浦发银行\n",
       "1  2020-08-10  600009  上海机场\n",
       "2  2020-08-10  600016  民生银行\n",
       "3  2020-08-10  600028  中国石化\n",
       "4  2020-08-10  600030  中信证券"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sz50.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "sz50 = sz50['code'].tolist()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['600000',\n",
       " '600009',\n",
       " '600016',\n",
       " '600028',\n",
       " '600030',\n",
       " '600031',\n",
       " '600036',\n",
       " '600048',\n",
       " '600050',\n",
       " '600104']"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sz50[:10]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 获取基本面数据\n",
    "stockbasics = ts.get_stock_basics()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>name</th>\n",
       "      <th>industry</th>\n",
       "      <th>area</th>\n",
       "      <th>pe</th>\n",
       "      <th>outstanding</th>\n",
       "      <th>totals</th>\n",
       "      <th>totalAssets</th>\n",
       "      <th>liquidAssets</th>\n",
       "      <th>fixedAssets</th>\n",
       "      <th>reserved</th>\n",
       "      <th>...</th>\n",
       "      <th>bvps</th>\n",
       "      <th>pb</th>\n",
       "      <th>timeToMarket</th>\n",
       "      <th>undp</th>\n",
       "      <th>perundp</th>\n",
       "      <th>rev</th>\n",
       "      <th>profit</th>\n",
       "      <th>gpr</th>\n",
       "      <th>npr</th>\n",
       "      <th>holders</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>code</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>688286</th>\n",
       "      <td>N敏芯</td>\n",
       "      <td>元器件</td>\n",
       "      <td>江苏</td>\n",
       "      <td>493.67</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.53</td>\n",
       "      <td>3.29</td>\n",
       "      <td>2.60</td>\n",
       "      <td>0.40</td>\n",
       "      <td>1.30</td>\n",
       "      <td>...</td>\n",
       "      <td>19.24</td>\n",
       "      <td>12.03</td>\n",
       "      <td>20200810</td>\n",
       "      <td>1.08</td>\n",
       "      <td>2.03</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>32.98</td>\n",
       "      <td>10.77</td>\n",
       "      <td>14845.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688339</th>\n",
       "      <td>N亿华通</td>\n",
       "      <td>汽车配件</td>\n",
       "      <td>北京</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.15</td>\n",
       "      <td>0.71</td>\n",
       "      <td>16.74</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>...</td>\n",
       "      <td>32.08</td>\n",
       "      <td>5.83</td>\n",
       "      <td>20200810</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>39.32</td>\n",
       "      <td>-185.04</td>\n",
       "      <td>13727.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688516</th>\n",
       "      <td>奥特维</td>\n",
       "      <td>专用机械</td>\n",
       "      <td>江苏</td>\n",
       "      <td>95.46</td>\n",
       "      <td>0.20</td>\n",
       "      <td>0.99</td>\n",
       "      <td>24.26</td>\n",
       "      <td>23.64</td>\n",
       "      <td>0.19</td>\n",
       "      <td>8.47</td>\n",
       "      <td>...</td>\n",
       "      <td>10.15</td>\n",
       "      <td>7.29</td>\n",
       "      <td>20200521</td>\n",
       "      <td>0.41</td>\n",
       "      <td>0.42</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>34.84</td>\n",
       "      <td>8.67</td>\n",
       "      <td>10057.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688069</th>\n",
       "      <td>德林海</td>\n",
       "      <td>环境保护</td>\n",
       "      <td>江苏</td>\n",
       "      <td>106.64</td>\n",
       "      <td>0.14</td>\n",
       "      <td>0.59</td>\n",
       "      <td>4.13</td>\n",
       "      <td>3.13</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.80</td>\n",
       "      <td>...</td>\n",
       "      <td>21.15</td>\n",
       "      <td>4.75</td>\n",
       "      <td>20200722</td>\n",
       "      <td>1.82</td>\n",
       "      <td>3.05</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>49.42</td>\n",
       "      <td>29.16</td>\n",
       "      <td>15756.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>600839</th>\n",
       "      <td>四川长虹</td>\n",
       "      <td>家用电器</td>\n",
       "      <td>四川</td>\n",
       "      <td>0.00</td>\n",
       "      <td>46.14</td>\n",
       "      <td>46.16</td>\n",
       "      <td>720.92</td>\n",
       "      <td>506.64</td>\n",
       "      <td>72.79</td>\n",
       "      <td>36.76</td>\n",
       "      <td>...</td>\n",
       "      <td>2.74</td>\n",
       "      <td>1.23</td>\n",
       "      <td>19940311</td>\n",
       "      <td>42.57</td>\n",
       "      <td>0.92</td>\n",
       "      <td>-18.65</td>\n",
       "      <td>-832.82</td>\n",
       "      <td>8.21</td>\n",
       "      <td>-2.15</td>\n",
       "      <td>328929.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>002206</th>\n",
       "      <td>海 利 得</td>\n",
       "      <td>化纤</td>\n",
       "      <td>浙江</td>\n",
       "      <td>29.09</td>\n",
       "      <td>9.60</td>\n",
       "      <td>12.23</td>\n",
       "      <td>58.77</td>\n",
       "      <td>27.02</td>\n",
       "      <td>19.48</td>\n",
       "      <td>8.77</td>\n",
       "      <td>...</td>\n",
       "      <td>2.32</td>\n",
       "      <td>1.87</td>\n",
       "      <td>20080123</td>\n",
       "      <td>7.28</td>\n",
       "      <td>0.60</td>\n",
       "      <td>-14.05</td>\n",
       "      <td>-47.15</td>\n",
       "      <td>21.19</td>\n",
       "      <td>5.61</td>\n",
       "      <td>29000.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>601058</th>\n",
       "      <td>赛轮轮胎</td>\n",
       "      <td>汽车配件</td>\n",
       "      <td>山东</td>\n",
       "      <td>11.07</td>\n",
       "      <td>20.78</td>\n",
       "      <td>26.99</td>\n",
       "      <td>189.67</td>\n",
       "      <td>93.73</td>\n",
       "      <td>65.11</td>\n",
       "      <td>15.23</td>\n",
       "      <td>...</td>\n",
       "      <td>2.74</td>\n",
       "      <td>1.63</td>\n",
       "      <td>20110630</td>\n",
       "      <td>31.65</td>\n",
       "      <td>1.17</td>\n",
       "      <td>-3.90</td>\n",
       "      <td>47.67</td>\n",
       "      <td>24.88</td>\n",
       "      <td>8.40</td>\n",
       "      <td>42349.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>600151</th>\n",
       "      <td>航天机电</td>\n",
       "      <td>汽车配件</td>\n",
       "      <td>上海</td>\n",
       "      <td>0.00</td>\n",
       "      <td>14.34</td>\n",
       "      <td>14.34</td>\n",
       "      <td>105.24</td>\n",
       "      <td>40.71</td>\n",
       "      <td>39.61</td>\n",
       "      <td>48.67</td>\n",
       "      <td>...</td>\n",
       "      <td>3.60</td>\n",
       "      <td>1.91</td>\n",
       "      <td>19980605</td>\n",
       "      <td>-13.69</td>\n",
       "      <td>-0.95</td>\n",
       "      <td>-2.86</td>\n",
       "      <td>15.08</td>\n",
       "      <td>13.23</td>\n",
       "      <td>-6.50</td>\n",
       "      <td>105770.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>002270</th>\n",
       "      <td>华明装备</td>\n",
       "      <td>电气设备</td>\n",
       "      <td>山东</td>\n",
       "      <td>7.56</td>\n",
       "      <td>7.32</td>\n",
       "      <td>7.59</td>\n",
       "      <td>42.06</td>\n",
       "      <td>26.89</td>\n",
       "      <td>4.86</td>\n",
       "      <td>9.42</td>\n",
       "      <td>...</td>\n",
       "      <td>3.41</td>\n",
       "      <td>2.05</td>\n",
       "      <td>20080905</td>\n",
       "      <td>15.01</td>\n",
       "      <td>1.98</td>\n",
       "      <td>-10.26</td>\n",
       "      <td>393.89</td>\n",
       "      <td>51.51</td>\n",
       "      <td>78.90</td>\n",
       "      <td>35910.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>002379</th>\n",
       "      <td>宏创控股</td>\n",
       "      <td>铝</td>\n",
       "      <td>山东</td>\n",
       "      <td>0.00</td>\n",
       "      <td>9.26</td>\n",
       "      <td>9.26</td>\n",
       "      <td>24.41</td>\n",
       "      <td>11.52</td>\n",
       "      <td>9.91</td>\n",
       "      <td>5.68</td>\n",
       "      <td>...</td>\n",
       "      <td>1.64</td>\n",
       "      <td>1.86</td>\n",
       "      <td>20100331</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.01</td>\n",
       "      <td>-6.62</td>\n",
       "      <td>-1138.17</td>\n",
       "      <td>2.09</td>\n",
       "      <td>-11.65</td>\n",
       "      <td>41668.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>600495</th>\n",
       "      <td>晋西车轴</td>\n",
       "      <td>运输设备</td>\n",
       "      <td>山西</td>\n",
       "      <td>0.00</td>\n",
       "      <td>12.08</td>\n",
       "      <td>12.08</td>\n",
       "      <td>38.78</td>\n",
       "      <td>22.39</td>\n",
       "      <td>12.60</td>\n",
       "      <td>11.60</td>\n",
       "      <td>...</td>\n",
       "      <td>2.62</td>\n",
       "      <td>1.80</td>\n",
       "      <td>20040526</td>\n",
       "      <td>5.86</td>\n",
       "      <td>0.48</td>\n",
       "      <td>-79.88</td>\n",
       "      <td>-553.08</td>\n",
       "      <td>-7.01</td>\n",
       "      <td>-46.17</td>\n",
       "      <td>110797.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>002649</th>\n",
       "      <td>博彦科技</td>\n",
       "      <td>软件服务</td>\n",
       "      <td>北京</td>\n",
       "      <td>23.47</td>\n",
       "      <td>4.59</td>\n",
       "      <td>5.29</td>\n",
       "      <td>44.18</td>\n",
       "      <td>30.65</td>\n",
       "      <td>3.25</td>\n",
       "      <td>9.03</td>\n",
       "      <td>...</td>\n",
       "      <td>5.20</td>\n",
       "      <td>1.96</td>\n",
       "      <td>20120106</td>\n",
       "      <td>11.83</td>\n",
       "      <td>2.24</td>\n",
       "      <td>14.33</td>\n",
       "      <td>4.72</td>\n",
       "      <td>20.63</td>\n",
       "      <td>5.78</td>\n",
       "      <td>48738.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>601456</th>\n",
       "      <td>国联证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>江苏</td>\n",
       "      <td>28.10</td>\n",
       "      <td>4.76</td>\n",
       "      <td>23.78</td>\n",
       "      <td>374.70</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>...</td>\n",
       "      <td>4.30</td>\n",
       "      <td>2.52</td>\n",
       "      <td>20200731</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>46.32</td>\n",
       "      <td>416247.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>603758</th>\n",
       "      <td>秦安股份</td>\n",
       "      <td>汽车配件</td>\n",
       "      <td>重庆</td>\n",
       "      <td>0.00</td>\n",
       "      <td>4.39</td>\n",
       "      <td>4.39</td>\n",
       "      <td>26.01</td>\n",
       "      <td>14.60</td>\n",
       "      <td>8.90</td>\n",
       "      <td>7.38</td>\n",
       "      <td>...</td>\n",
       "      <td>5.57</td>\n",
       "      <td>1.63</td>\n",
       "      <td>20170517</td>\n",
       "      <td>11.47</td>\n",
       "      <td>2.61</td>\n",
       "      <td>-20.37</td>\n",
       "      <td>41.21</td>\n",
       "      <td>9.10</td>\n",
       "      <td>-20.51</td>\n",
       "      <td>15240.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>000516</th>\n",
       "      <td>国际医学</td>\n",
       "      <td>医疗保健</td>\n",
       "      <td>陕西</td>\n",
       "      <td>0.00</td>\n",
       "      <td>19.29</td>\n",
       "      <td>19.71</td>\n",
       "      <td>103.74</td>\n",
       "      <td>15.61</td>\n",
       "      <td>45.07</td>\n",
       "      <td>2.18</td>\n",
       "      <td>...</td>\n",
       "      <td>2.42</td>\n",
       "      <td>2.85</td>\n",
       "      <td>19930809</td>\n",
       "      <td>24.07</td>\n",
       "      <td>1.22</td>\n",
       "      <td>24.96</td>\n",
       "      <td>-765.51</td>\n",
       "      <td>-25.38</td>\n",
       "      <td>-68.84</td>\n",
       "      <td>87626.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>002209</th>\n",
       "      <td>达 意 隆</td>\n",
       "      <td>轻工机械</td>\n",
       "      <td>广东</td>\n",
       "      <td>0.00</td>\n",
       "      <td>1.55</td>\n",
       "      <td>1.95</td>\n",
       "      <td>14.65</td>\n",
       "      <td>10.15</td>\n",
       "      <td>3.43</td>\n",
       "      <td>2.23</td>\n",
       "      <td>...</td>\n",
       "      <td>3.08</td>\n",
       "      <td>3.03</td>\n",
       "      <td>20080130</td>\n",
       "      <td>1.48</td>\n",
       "      <td>0.76</td>\n",
       "      <td>-12.88</td>\n",
       "      <td>44.41</td>\n",
       "      <td>29.03</td>\n",
       "      <td>-2.97</td>\n",
       "      <td>12914.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>002560</th>\n",
       "      <td>通达股份</td>\n",
       "      <td>电气设备</td>\n",
       "      <td>河南</td>\n",
       "      <td>27.56</td>\n",
       "      <td>2.85</td>\n",
       "      <td>4.44</td>\n",
       "      <td>30.48</td>\n",
       "      <td>18.38</td>\n",
       "      <td>3.74</td>\n",
       "      <td>7.56</td>\n",
       "      <td>...</td>\n",
       "      <td>3.93</td>\n",
       "      <td>2.98</td>\n",
       "      <td>20110303</td>\n",
       "      <td>4.82</td>\n",
       "      <td>1.09</td>\n",
       "      <td>9.84</td>\n",
       "      <td>69.01</td>\n",
       "      <td>17.67</td>\n",
       "      <td>9.19</td>\n",
       "      <td>44550.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>002519</th>\n",
       "      <td>银河电子</td>\n",
       "      <td>通信设备</td>\n",
       "      <td>江苏</td>\n",
       "      <td>30.17</td>\n",
       "      <td>10.11</td>\n",
       "      <td>11.26</td>\n",
       "      <td>33.82</td>\n",
       "      <td>21.03</td>\n",
       "      <td>7.67</td>\n",
       "      <td>18.70</td>\n",
       "      <td>...</td>\n",
       "      <td>2.34</td>\n",
       "      <td>2.39</td>\n",
       "      <td>20101207</td>\n",
       "      <td>-2.37</td>\n",
       "      <td>-0.21</td>\n",
       "      <td>3.07</td>\n",
       "      <td>9.86</td>\n",
       "      <td>36.38</td>\n",
       "      <td>16.88</td>\n",
       "      <td>41550.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>000558</th>\n",
       "      <td>莱茵体育</td>\n",
       "      <td>文教休闲</td>\n",
       "      <td>浙江</td>\n",
       "      <td>0.00</td>\n",
       "      <td>12.88</td>\n",
       "      <td>12.89</td>\n",
       "      <td>23.54</td>\n",
       "      <td>8.53</td>\n",
       "      <td>2.74</td>\n",
       "      <td>0.70</td>\n",
       "      <td>...</td>\n",
       "      <td>0.99</td>\n",
       "      <td>3.10</td>\n",
       "      <td>19940509</td>\n",
       "      <td>-1.49</td>\n",
       "      <td>-0.12</td>\n",
       "      <td>-21.71</td>\n",
       "      <td>50.12</td>\n",
       "      <td>28.43</td>\n",
       "      <td>-82.16</td>\n",
       "      <td>70664.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>600037</th>\n",
       "      <td>歌华有线</td>\n",
       "      <td>影视音像</td>\n",
       "      <td>北京</td>\n",
       "      <td>287.31</td>\n",
       "      <td>13.92</td>\n",
       "      <td>13.92</td>\n",
       "      <td>164.63</td>\n",
       "      <td>98.82</td>\n",
       "      <td>39.46</td>\n",
       "      <td>65.54</td>\n",
       "      <td>...</td>\n",
       "      <td>9.67</td>\n",
       "      <td>1.64</td>\n",
       "      <td>20010208</td>\n",
       "      <td>45.90</td>\n",
       "      <td>3.30</td>\n",
       "      <td>-14.09</td>\n",
       "      <td>-92.27</td>\n",
       "      <td>16.46</td>\n",
       "      <td>3.92</td>\n",
       "      <td>67980.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>002617</th>\n",
       "      <td>露笑科技</td>\n",
       "      <td>电气设备</td>\n",
       "      <td>浙江</td>\n",
       "      <td>31.32</td>\n",
       "      <td>11.57</td>\n",
       "      <td>15.11</td>\n",
       "      <td>77.84</td>\n",
       "      <td>33.22</td>\n",
       "      <td>34.47</td>\n",
       "      <td>19.14</td>\n",
       "      <td>...</td>\n",
       "      <td>1.95</td>\n",
       "      <td>3.42</td>\n",
       "      <td>20110920</td>\n",
       "      <td>-4.58</td>\n",
       "      <td>-0.30</td>\n",
       "      <td>-19.58</td>\n",
       "      <td>0.16</td>\n",
       "      <td>22.61</td>\n",
       "      <td>16.39</td>\n",
       "      <td>54735.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>002620</th>\n",
       "      <td>瑞和股份</td>\n",
       "      <td>装修装饰</td>\n",
       "      <td>深圳</td>\n",
       "      <td>342.70</td>\n",
       "      <td>3.11</td>\n",
       "      <td>3.79</td>\n",
       "      <td>54.47</td>\n",
       "      <td>42.09</td>\n",
       "      <td>7.55</td>\n",
       "      <td>12.19</td>\n",
       "      <td>...</td>\n",
       "      <td>6.16</td>\n",
       "      <td>1.12</td>\n",
       "      <td>20110929</td>\n",
       "      <td>6.50</td>\n",
       "      <td>1.72</td>\n",
       "      <td>-49.50</td>\n",
       "      <td>-95.96</td>\n",
       "      <td>16.14</td>\n",
       "      <td>0.44</td>\n",
       "      <td>18562.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>002165</th>\n",
       "      <td>红 宝 丽</td>\n",
       "      <td>化工原料</td>\n",
       "      <td>江苏</td>\n",
       "      <td>41.42</td>\n",
       "      <td>5.94</td>\n",
       "      <td>6.02</td>\n",
       "      <td>38.86</td>\n",
       "      <td>15.10</td>\n",
       "      <td>5.73</td>\n",
       "      <td>2.98</td>\n",
       "      <td>...</td>\n",
       "      <td>2.65</td>\n",
       "      <td>2.69</td>\n",
       "      <td>20070913</td>\n",
       "      <td>6.03</td>\n",
       "      <td>1.00</td>\n",
       "      <td>-20.88</td>\n",
       "      <td>32.86</td>\n",
       "      <td>23.44</td>\n",
       "      <td>5.35</td>\n",
       "      <td>35000.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>603385</th>\n",
       "      <td>惠达卫浴</td>\n",
       "      <td>家居用品</td>\n",
       "      <td>河北</td>\n",
       "      <td>58.46</td>\n",
       "      <td>3.69</td>\n",
       "      <td>3.69</td>\n",
       "      <td>49.72</td>\n",
       "      <td>30.59</td>\n",
       "      <td>12.88</td>\n",
       "      <td>9.15</td>\n",
       "      <td>...</td>\n",
       "      <td>9.25</td>\n",
       "      <td>1.97</td>\n",
       "      <td>20170405</td>\n",
       "      <td>19.86</td>\n",
       "      <td>5.38</td>\n",
       "      <td>-24.44</td>\n",
       "      <td>-45.72</td>\n",
       "      <td>29.31</td>\n",
       "      <td>5.81</td>\n",
       "      <td>20865.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>000856</th>\n",
       "      <td>冀东装备</td>\n",
       "      <td>机械基件</td>\n",
       "      <td>河北</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.27</td>\n",
       "      <td>2.27</td>\n",
       "      <td>23.03</td>\n",
       "      <td>17.12</td>\n",
       "      <td>3.20</td>\n",
       "      <td>3.89</td>\n",
       "      <td>...</td>\n",
       "      <td>1.49</td>\n",
       "      <td>7.60</td>\n",
       "      <td>19980813</td>\n",
       "      <td>-3.14</td>\n",
       "      <td>-1.38</td>\n",
       "      <td>-5.80</td>\n",
       "      <td>-105.94</td>\n",
       "      <td>4.44</td>\n",
       "      <td>-0.57</td>\n",
       "      <td>42398.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>601611</th>\n",
       "      <td>中国核建</td>\n",
       "      <td>建筑工程</td>\n",
       "      <td>上海</td>\n",
       "      <td>38.64</td>\n",
       "      <td>26.25</td>\n",
       "      <td>26.50</td>\n",
       "      <td>1299.47</td>\n",
       "      <td>905.65</td>\n",
       "      <td>35.87</td>\n",
       "      <td>12.48</td>\n",
       "      <td>...</td>\n",
       "      <td>3.87</td>\n",
       "      <td>1.99</td>\n",
       "      <td>20160606</td>\n",
       "      <td>56.87</td>\n",
       "      <td>2.15</td>\n",
       "      <td>-10.32</td>\n",
       "      <td>-30.90</td>\n",
       "      <td>7.04</td>\n",
       "      <td>1.07</td>\n",
       "      <td>100053.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>002035</th>\n",
       "      <td>华帝股份</td>\n",
       "      <td>家用电器</td>\n",
       "      <td>广东</td>\n",
       "      <td>56.08</td>\n",
       "      <td>7.83</td>\n",
       "      <td>8.69</td>\n",
       "      <td>52.89</td>\n",
       "      <td>37.96</td>\n",
       "      <td>5.62</td>\n",
       "      <td>0.81</td>\n",
       "      <td>...</td>\n",
       "      <td>3.46</td>\n",
       "      <td>3.45</td>\n",
       "      <td>20040901</td>\n",
       "      <td>19.23</td>\n",
       "      <td>2.21</td>\n",
       "      <td>-48.07</td>\n",
       "      <td>-65.01</td>\n",
       "      <td>43.93</td>\n",
       "      <td>6.70</td>\n",
       "      <td>41436.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>603167</th>\n",
       "      <td>渤海轮渡</td>\n",
       "      <td>水运</td>\n",
       "      <td>山东</td>\n",
       "      <td>0.00</td>\n",
       "      <td>4.66</td>\n",
       "      <td>4.73</td>\n",
       "      <td>53.64</td>\n",
       "      <td>9.65</td>\n",
       "      <td>34.17</td>\n",
       "      <td>9.79</td>\n",
       "      <td>...</td>\n",
       "      <td>7.08</td>\n",
       "      <td>1.74</td>\n",
       "      <td>20120906</td>\n",
       "      <td>17.04</td>\n",
       "      <td>3.60</td>\n",
       "      <td>-44.70</td>\n",
       "      <td>-128.93</td>\n",
       "      <td>-0.13</td>\n",
       "      <td>-25.52</td>\n",
       "      <td>27253.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>603183</th>\n",
       "      <td>建研院</td>\n",
       "      <td>建筑工程</td>\n",
       "      <td>江苏</td>\n",
       "      <td>40.63</td>\n",
       "      <td>1.47</td>\n",
       "      <td>2.98</td>\n",
       "      <td>15.82</td>\n",
       "      <td>8.57</td>\n",
       "      <td>1.87</td>\n",
       "      <td>5.56</td>\n",
       "      <td>...</td>\n",
       "      <td>3.99</td>\n",
       "      <td>2.18</td>\n",
       "      <td>20170905</td>\n",
       "      <td>3.32</td>\n",
       "      <td>1.11</td>\n",
       "      <td>7.96</td>\n",
       "      <td>14.11</td>\n",
       "      <td>47.14</td>\n",
       "      <td>11.13</td>\n",
       "      <td>24155.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>300274</th>\n",
       "      <td>阳光电源</td>\n",
       "      <td>电气设备</td>\n",
       "      <td>安徽</td>\n",
       "      <td>49.87</td>\n",
       "      <td>10.84</td>\n",
       "      <td>14.57</td>\n",
       "      <td>217.24</td>\n",
       "      <td>172.01</td>\n",
       "      <td>29.56</td>\n",
       "      <td>32.53</td>\n",
       "      <td>...</td>\n",
       "      <td>5.99</td>\n",
       "      <td>3.65</td>\n",
       "      <td>20111102</td>\n",
       "      <td>37.27</td>\n",
       "      <td>2.56</td>\n",
       "      <td>-16.78</td>\n",
       "      <td>-6.83</td>\n",
       "      <td>28.37</td>\n",
       "      <td>8.64</td>\n",
       "      <td>47654.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>603931</th>\n",
       "      <td>格林达</td>\n",
       "      <td>化工原料</td>\n",
       "      <td>浙江</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>7.14</td>\n",
       "      <td>3.69</td>\n",
       "      <td>1.76</td>\n",
       "      <td>2.35</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>1.87</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>32.32</td>\n",
       "      <td>20.49</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>605003</th>\n",
       "      <td>众望布艺</td>\n",
       "      <td>纺织</td>\n",
       "      <td>浙江</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>4.42</td>\n",
       "      <td>2.40</td>\n",
       "      <td>0.44</td>\n",
       "      <td>0.97</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>1.84</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>46.68</td>\n",
       "      <td>27.07</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>605008</th>\n",
       "      <td>长鸿高科</td>\n",
       "      <td>塑料</td>\n",
       "      <td>浙江</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>15.25</td>\n",
       "      <td>6.25</td>\n",
       "      <td>7.59</td>\n",
       "      <td>1.32</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>4.93</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>28.34</td>\n",
       "      <td>13.87</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>605088</th>\n",
       "      <td>冠盛股份</td>\n",
       "      <td>汽车配件</td>\n",
       "      <td>浙江</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>13.77</td>\n",
       "      <td>9.83</td>\n",
       "      <td>3.14</td>\n",
       "      <td>0.89</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>5.36</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>23.28</td>\n",
       "      <td>8.75</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>605100</th>\n",
       "      <td>华丰股份</td>\n",
       "      <td>机床制造</td>\n",
       "      <td>山东</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>14.60</td>\n",
       "      <td>8.45</td>\n",
       "      <td>5.52</td>\n",
       "      <td>3.32</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>3.71</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>23.95</td>\n",
       "      <td>14.28</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>605123</th>\n",
       "      <td>派克新材</td>\n",
       "      <td>钢加工</td>\n",
       "      <td>江苏</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>14.77</td>\n",
       "      <td>10.67</td>\n",
       "      <td>1.45</td>\n",
       "      <td>2.09</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>3.95</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>28.73</td>\n",
       "      <td>16.56</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>605178</th>\n",
       "      <td>时空科技</td>\n",
       "      <td>装修装饰</td>\n",
       "      <td>北京</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>17.99</td>\n",
       "      <td>16.82</td>\n",
       "      <td>0.93</td>\n",
       "      <td>2.20</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>6.45</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>39.15</td>\n",
       "      <td>17.75</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>605255</th>\n",
       "      <td>天普股份</td>\n",
       "      <td>汽车配件</td>\n",
       "      <td>浙江</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>5.96</td>\n",
       "      <td>1.85</td>\n",
       "      <td>1.75</td>\n",
       "      <td>2.40</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>1.79</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>39.21</td>\n",
       "      <td>17.03</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>605333</th>\n",
       "      <td>沪光股份</td>\n",
       "      <td>汽车配件</td>\n",
       "      <td>江苏</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>16.16</td>\n",
       "      <td>8.90</td>\n",
       "      <td>3.65</td>\n",
       "      <td>0.03</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>1.59</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>16.40</td>\n",
       "      <td>1.95</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>605366</th>\n",
       "      <td>宏柏新材</td>\n",
       "      <td>化工原料</td>\n",
       "      <td>江西</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>11.60</td>\n",
       "      <td>6.13</td>\n",
       "      <td>3.89</td>\n",
       "      <td>1.58</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>3.69</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>28.71</td>\n",
       "      <td>14.28</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>605388</th>\n",
       "      <td>均瑶健康</td>\n",
       "      <td>乳制品</td>\n",
       "      <td>湖北</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>13.44</td>\n",
       "      <td>11.44</td>\n",
       "      <td>1.44</td>\n",
       "      <td>0.55</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>4.71</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-3.18</td>\n",
       "      <td>16.34</td>\n",
       "      <td>52.68</td>\n",
       "      <td>23.70</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688055</th>\n",
       "      <td>龙腾光电</td>\n",
       "      <td>元器件</td>\n",
       "      <td>江苏</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>50.80</td>\n",
       "      <td>17.28</td>\n",
       "      <td>27.45</td>\n",
       "      <td>0.40</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>0.94</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>20.12</td>\n",
       "      <td>2.71</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688065</th>\n",
       "      <td>凯赛生物</td>\n",
       "      <td>化纤</td>\n",
       "      <td>上海</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>59.27</td>\n",
       "      <td>25.46</td>\n",
       "      <td>12.80</td>\n",
       "      <td>34.43</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>9.02</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>47.94</td>\n",
       "      <td>29.17</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688155</th>\n",
       "      <td>先惠技术</td>\n",
       "      <td>专用机械</td>\n",
       "      <td>上海</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>6.60</td>\n",
       "      <td>6.14</td>\n",
       "      <td>0.11</td>\n",
       "      <td>2.12</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>1.21</td>\n",
       "      <td>0.00</td>\n",
       "      <td>12.20</td>\n",
       "      <td>155.81</td>\n",
       "      <td>46.11</td>\n",
       "      <td>19.71</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688185</th>\n",
       "      <td>康希诺</td>\n",
       "      <td>生物制药</td>\n",
       "      <td>天津</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>17.36</td>\n",
       "      <td>7.30</td>\n",
       "      <td>0.83</td>\n",
       "      <td>16.20</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>-3.91</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>91.49</td>\n",
       "      <td>-573.33</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688229</th>\n",
       "      <td>博睿数据</td>\n",
       "      <td>软件服务</td>\n",
       "      <td>北京</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.34</td>\n",
       "      <td>2.26</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.05</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>1.50</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>74.73</td>\n",
       "      <td>12.33</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688313</th>\n",
       "      <td>仕佳光子</td>\n",
       "      <td>通信设备</td>\n",
       "      <td>河南</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>9.94</td>\n",
       "      <td>5.50</td>\n",
       "      <td>3.62</td>\n",
       "      <td>2.43</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>0.13</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>25.96</td>\n",
       "      <td>8.69</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688335</th>\n",
       "      <td>复洁环保</td>\n",
       "      <td>环境保护</td>\n",
       "      <td>上海</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>4.05</td>\n",
       "      <td>3.71</td>\n",
       "      <td>0.10</td>\n",
       "      <td>0.83</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>1.04</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>34.42</td>\n",
       "      <td>6.97</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688356</th>\n",
       "      <td>键凯科技</td>\n",
       "      <td>化工原料</td>\n",
       "      <td>北京</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.71</td>\n",
       "      <td>1.67</td>\n",
       "      <td>0.81</td>\n",
       "      <td>0.69</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>1.16</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>82.06</td>\n",
       "      <td>40.43</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688379</th>\n",
       "      <td>华光新材</td>\n",
       "      <td>小金属</td>\n",
       "      <td>浙江</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>7.29</td>\n",
       "      <td>5.24</td>\n",
       "      <td>1.52</td>\n",
       "      <td>1.08</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>3.07</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>15.68</td>\n",
       "      <td>5.17</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688393</th>\n",
       "      <td>安必平</td>\n",
       "      <td>生物制药</td>\n",
       "      <td>广东</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>5.20</td>\n",
       "      <td>3.47</td>\n",
       "      <td>0.51</td>\n",
       "      <td>1.35</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>2.20</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>81.44</td>\n",
       "      <td>25.69</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688519</th>\n",
       "      <td>南亚新材</td>\n",
       "      <td>元器件</td>\n",
       "      <td>上海</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>19.09</td>\n",
       "      <td>13.46</td>\n",
       "      <td>4.63</td>\n",
       "      <td>2.00</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>2.96</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>15.99</td>\n",
       "      <td>7.28</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688521</th>\n",
       "      <td>芯原股份</td>\n",
       "      <td>软件服务</td>\n",
       "      <td>上海</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>14.49</td>\n",
       "      <td>9.58</td>\n",
       "      <td>0.36</td>\n",
       "      <td>21.69</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>-16.44</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>36.57</td>\n",
       "      <td>-20.88</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>688596</th>\n",
       "      <td>正帆科技</td>\n",
       "      <td>专用机械</td>\n",
       "      <td>上海</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>16.58</td>\n",
       "      <td>12.58</td>\n",
       "      <td>3.45</td>\n",
       "      <td>2.36</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>2.04</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>25.67</td>\n",
       "      <td>-6.09</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>300878</th>\n",
       "      <td>维康药业</td>\n",
       "      <td>中成药</td>\n",
       "      <td>浙江</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>9.70</td>\n",
       "      <td>4.94</td>\n",
       "      <td>1.22</td>\n",
       "      <td>0.40</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>4.33</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>73.34</td>\n",
       "      <td>18.94</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>300877</th>\n",
       "      <td>金春股份</td>\n",
       "      <td>纺织</td>\n",
       "      <td>安徽</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>8.23</td>\n",
       "      <td>4.25</td>\n",
       "      <td>3.50</td>\n",
       "      <td>1.39</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>3.81</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>38.12</td>\n",
       "      <td>24.89</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>300876</th>\n",
       "      <td>蒙泰高新</td>\n",
       "      <td>化纤</td>\n",
       "      <td>广东</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>3.11</td>\n",
       "      <td>1.92</td>\n",
       "      <td>0.44</td>\n",
       "      <td>0.47</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>1.46</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>34.81</td>\n",
       "      <td>22.51</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>300875</th>\n",
       "      <td>捷强装备</td>\n",
       "      <td>专用机械</td>\n",
       "      <td>天津</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>4.87</td>\n",
       "      <td>2.95</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.97</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>2.13</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>62.10</td>\n",
       "      <td>41.89</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>300873</th>\n",
       "      <td>海晨股份</td>\n",
       "      <td>仓储物流</td>\n",
       "      <td>江苏</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>10.66</td>\n",
       "      <td>5.70</td>\n",
       "      <td>2.77</td>\n",
       "      <td>1.89</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>4.32</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>33.53</td>\n",
       "      <td>20.48</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>300872</th>\n",
       "      <td>天阳科技</td>\n",
       "      <td>软件服务</td>\n",
       "      <td>西藏</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>16.10</td>\n",
       "      <td>13.50</td>\n",
       "      <td>1.07</td>\n",
       "      <td>4.59</td>\n",
       "      <td>...</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0</td>\n",
       "      <td>3.47</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>33.44</td>\n",
       "      <td>9.43</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>3969 rows × 22 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "         name industry area      pe  outstanding  totals  totalAssets  \\\n",
       "code                                                                    \n",
       "688286    N敏芯      元器件   江苏  493.67         0.12    0.53         3.29   \n",
       "688339   N亿华通     汽车配件   北京    0.00         0.15    0.71        16.74   \n",
       "688516    奥特维     专用机械   江苏   95.46         0.20    0.99        24.26   \n",
       "688069    德林海     环境保护   江苏  106.64         0.14    0.59         4.13   \n",
       "600839   四川长虹     家用电器   四川    0.00        46.14   46.16       720.92   \n",
       "002206  海 利 得       化纤   浙江   29.09         9.60   12.23        58.77   \n",
       "601058   赛轮轮胎     汽车配件   山东   11.07        20.78   26.99       189.67   \n",
       "600151   航天机电     汽车配件   上海    0.00        14.34   14.34       105.24   \n",
       "002270   华明装备     电气设备   山东    7.56         7.32    7.59        42.06   \n",
       "002379   宏创控股        铝   山东    0.00         9.26    9.26        24.41   \n",
       "600495   晋西车轴     运输设备   山西    0.00        12.08   12.08        38.78   \n",
       "002649   博彦科技     软件服务   北京   23.47         4.59    5.29        44.18   \n",
       "601456   国联证券       证券   江苏   28.10         4.76   23.78       374.70   \n",
       "603758   秦安股份     汽车配件   重庆    0.00         4.39    4.39        26.01   \n",
       "000516   国际医学     医疗保健   陕西    0.00        19.29   19.71       103.74   \n",
       "002209  达 意 隆     轻工机械   广东    0.00         1.55    1.95        14.65   \n",
       "002560   通达股份     电气设备   河南   27.56         2.85    4.44        30.48   \n",
       "002519   银河电子     通信设备   江苏   30.17        10.11   11.26        33.82   \n",
       "000558   莱茵体育     文教休闲   浙江    0.00        12.88   12.89        23.54   \n",
       "600037   歌华有线     影视音像   北京  287.31        13.92   13.92       164.63   \n",
       "002617   露笑科技     电气设备   浙江   31.32        11.57   15.11        77.84   \n",
       "002620   瑞和股份     装修装饰   深圳  342.70         3.11    3.79        54.47   \n",
       "002165  红 宝 丽     化工原料   江苏   41.42         5.94    6.02        38.86   \n",
       "603385   惠达卫浴     家居用品   河北   58.46         3.69    3.69        49.72   \n",
       "000856   冀东装备     机械基件   河北    0.00         2.27    2.27        23.03   \n",
       "601611   中国核建     建筑工程   上海   38.64        26.25   26.50      1299.47   \n",
       "002035   华帝股份     家用电器   广东   56.08         7.83    8.69        52.89   \n",
       "603167   渤海轮渡       水运   山东    0.00         4.66    4.73        53.64   \n",
       "603183    建研院     建筑工程   江苏   40.63         1.47    2.98        15.82   \n",
       "300274   阳光电源     电气设备   安徽   49.87        10.84   14.57       217.24   \n",
       "...       ...      ...  ...     ...          ...     ...          ...   \n",
       "603931    格林达     化工原料   浙江    0.00         0.00    0.00         7.14   \n",
       "605003   众望布艺       纺织   浙江    0.00         0.00    0.00         4.42   \n",
       "605008   长鸿高科       塑料   浙江    0.00         0.00    0.00        15.25   \n",
       "605088   冠盛股份     汽车配件   浙江    0.00         0.00    0.00        13.77   \n",
       "605100   华丰股份     机床制造   山东    0.00         0.00    0.00        14.60   \n",
       "605123   派克新材      钢加工   江苏    0.00         0.00    0.00        14.77   \n",
       "605178   时空科技     装修装饰   北京    0.00         0.00    0.00        17.99   \n",
       "605255   天普股份     汽车配件   浙江    0.00         0.00    0.00         5.96   \n",
       "605333   沪光股份     汽车配件   江苏    0.00         0.00    0.00        16.16   \n",
       "605366   宏柏新材     化工原料   江西    0.00         0.00    0.00        11.60   \n",
       "605388   均瑶健康      乳制品   湖北    0.00         0.00    0.00        13.44   \n",
       "688055   龙腾光电      元器件   江苏    0.00         0.00    0.00        50.80   \n",
       "688065   凯赛生物       化纤   上海    0.00         0.00    0.00        59.27   \n",
       "688155   先惠技术     专用机械   上海    0.00         0.00    0.00         6.60   \n",
       "688185    康希诺     生物制药   天津    0.00         0.00    0.00        17.36   \n",
       "688229   博睿数据     软件服务   北京    0.00         0.00    0.00         2.34   \n",
       "688313   仕佳光子     通信设备   河南    0.00         0.00    0.00         9.94   \n",
       "688335   复洁环保     环境保护   上海    0.00         0.00    0.00         4.05   \n",
       "688356   键凯科技     化工原料   北京    0.00         0.00    0.00         2.71   \n",
       "688379   华光新材      小金属   浙江    0.00         0.00    0.00         7.29   \n",
       "688393    安必平     生物制药   广东    0.00         0.00    0.00         5.20   \n",
       "688519   南亚新材      元器件   上海    0.00         0.00    0.00        19.09   \n",
       "688521   芯原股份     软件服务   上海    0.00         0.00    0.00        14.49   \n",
       "688596   正帆科技     专用机械   上海    0.00         0.00    0.00        16.58   \n",
       "300878   维康药业      中成药   浙江    0.00         0.00    0.00         9.70   \n",
       "300877   金春股份       纺织   安徽    0.00         0.00    0.00         8.23   \n",
       "300876   蒙泰高新       化纤   广东    0.00         0.00    0.00         3.11   \n",
       "300875   捷强装备     专用机械   天津    0.00         0.00    0.00         4.87   \n",
       "300873   海晨股份     仓储物流   江苏    0.00         0.00    0.00        10.66   \n",
       "300872   天阳科技     软件服务   西藏    0.00         0.00    0.00        16.10   \n",
       "\n",
       "        liquidAssets  fixedAssets  reserved  ...   bvps     pb  timeToMarket  \\\n",
       "code                                         ...                               \n",
       "688286          2.60         0.40      1.30  ...  19.24  12.03      20200810   \n",
       "688339          0.00         0.00      0.00  ...  32.08   5.83      20200810   \n",
       "688516         23.64         0.19      8.47  ...  10.15   7.29      20200521   \n",
       "688069          3.13         0.05      0.80  ...  21.15   4.75      20200722   \n",
       "600839        506.64        72.79     36.76  ...   2.74   1.23      19940311   \n",
       "002206         27.02        19.48      8.77  ...   2.32   1.87      20080123   \n",
       "601058         93.73        65.11     15.23  ...   2.74   1.63      20110630   \n",
       "600151         40.71        39.61     48.67  ...   3.60   1.91      19980605   \n",
       "002270         26.89         4.86      9.42  ...   3.41   2.05      20080905   \n",
       "002379         11.52         9.91      5.68  ...   1.64   1.86      20100331   \n",
       "600495         22.39        12.60     11.60  ...   2.62   1.80      20040526   \n",
       "002649         30.65         3.25      9.03  ...   5.20   1.96      20120106   \n",
       "601456          0.00         0.00      0.00  ...   4.30   2.52      20200731   \n",
       "603758         14.60         8.90      7.38  ...   5.57   1.63      20170517   \n",
       "000516         15.61        45.07      2.18  ...   2.42   2.85      19930809   \n",
       "002209         10.15         3.43      2.23  ...   3.08   3.03      20080130   \n",
       "002560         18.38         3.74      7.56  ...   3.93   2.98      20110303   \n",
       "002519         21.03         7.67     18.70  ...   2.34   2.39      20101207   \n",
       "000558          8.53         2.74      0.70  ...   0.99   3.10      19940509   \n",
       "600037         98.82        39.46     65.54  ...   9.67   1.64      20010208   \n",
       "002617         33.22        34.47     19.14  ...   1.95   3.42      20110920   \n",
       "002620         42.09         7.55     12.19  ...   6.16   1.12      20110929   \n",
       "002165         15.10         5.73      2.98  ...   2.65   2.69      20070913   \n",
       "603385         30.59        12.88      9.15  ...   9.25   1.97      20170405   \n",
       "000856         17.12         3.20      3.89  ...   1.49   7.60      19980813   \n",
       "601611        905.65        35.87     12.48  ...   3.87   1.99      20160606   \n",
       "002035         37.96         5.62      0.81  ...   3.46   3.45      20040901   \n",
       "603167          9.65        34.17      9.79  ...   7.08   1.74      20120906   \n",
       "603183          8.57         1.87      5.56  ...   3.99   2.18      20170905   \n",
       "300274        172.01        29.56     32.53  ...   5.99   3.65      20111102   \n",
       "...              ...          ...       ...  ...    ...    ...           ...   \n",
       "603931          3.69         1.76      2.35  ...   0.00   0.00             0   \n",
       "605003          2.40         0.44      0.97  ...   0.00   0.00             0   \n",
       "605008          6.25         7.59      1.32  ...   0.00   0.00             0   \n",
       "605088          9.83         3.14      0.89  ...   0.00   0.00             0   \n",
       "605100          8.45         5.52      3.32  ...   0.00   0.00             0   \n",
       "605123         10.67         1.45      2.09  ...   0.00   0.00             0   \n",
       "605178         16.82         0.93      2.20  ...   0.00   0.00             0   \n",
       "605255          1.85         1.75      2.40  ...   0.00   0.00             0   \n",
       "605333          8.90         3.65      0.03  ...   0.00   0.00             0   \n",
       "605366          6.13         3.89      1.58  ...   0.00   0.00             0   \n",
       "605388         11.44         1.44      0.55  ...   0.00   0.00             0   \n",
       "688055         17.28        27.45      0.40  ...   0.00   0.00             0   \n",
       "688065         25.46        12.80     34.43  ...   0.00   0.00             0   \n",
       "688155          6.14         0.11      2.12  ...   0.00   0.00             0   \n",
       "688185          7.30         0.83     16.20  ...   0.00   0.00             0   \n",
       "688229          2.26         0.04      0.05  ...   0.00   0.00             0   \n",
       "688313          5.50         3.62      2.43  ...   0.00   0.00             0   \n",
       "688335          3.71         0.10      0.83  ...   0.00   0.00             0   \n",
       "688356          1.67         0.81      0.69  ...   0.00   0.00             0   \n",
       "688379          5.24         1.52      1.08  ...   0.00   0.00             0   \n",
       "688393          3.47         0.51      1.35  ...   0.00   0.00             0   \n",
       "688519         13.46         4.63      2.00  ...   0.00   0.00             0   \n",
       "688521          9.58         0.36     21.69  ...   0.00   0.00             0   \n",
       "688596         12.58         3.45      2.36  ...   0.00   0.00             0   \n",
       "300878          4.94         1.22      0.40  ...   0.00   0.00             0   \n",
       "300877          4.25         3.50      1.39  ...   0.00   0.00             0   \n",
       "300876          1.92         0.44      0.47  ...   0.00   0.00             0   \n",
       "300875          2.95         0.05      0.97  ...   0.00   0.00             0   \n",
       "300873          5.70         2.77      1.89  ...   0.00   0.00             0   \n",
       "300872         13.50         1.07      4.59  ...   0.00   0.00             0   \n",
       "\n",
       "         undp  perundp    rev   profit    gpr     npr   holders  \n",
       "code                                                             \n",
       "688286   1.08     2.03   0.00     0.00  32.98   10.77   14845.0  \n",
       "688339   0.00     0.00   0.00     0.00  39.32 -185.04   13727.0  \n",
       "688516   0.41     0.42   0.00     0.00  34.84    8.67   10057.0  \n",
       "688069   1.82     3.05   0.00     0.00  49.42   29.16   15756.0  \n",
       "600839  42.57     0.92 -18.65  -832.82   8.21   -2.15  328929.0  \n",
       "002206   7.28     0.60 -14.05   -47.15  21.19    5.61   29000.0  \n",
       "601058  31.65     1.17  -3.90    47.67  24.88    8.40   42349.0  \n",
       "600151 -13.69    -0.95  -2.86    15.08  13.23   -6.50  105770.0  \n",
       "002270  15.01     1.98 -10.26   393.89  51.51   78.90   35910.0  \n",
       "002379   0.05     0.01  -6.62 -1138.17   2.09  -11.65   41668.0  \n",
       "600495   5.86     0.48 -79.88  -553.08  -7.01  -46.17  110797.0  \n",
       "002649  11.83     2.24  14.33     4.72  20.63    5.78   48738.0  \n",
       "601456   0.00     0.00   0.00     0.00   0.00   46.32  416247.0  \n",
       "603758  11.47     2.61 -20.37    41.21   9.10  -20.51   15240.0  \n",
       "000516  24.07     1.22  24.96  -765.51 -25.38  -68.84   87626.0  \n",
       "002209   1.48     0.76 -12.88    44.41  29.03   -2.97   12914.0  \n",
       "002560   4.82     1.09   9.84    69.01  17.67    9.19   44550.0  \n",
       "002519  -2.37    -0.21   3.07     9.86  36.38   16.88   41550.0  \n",
       "000558  -1.49    -0.12 -21.71    50.12  28.43  -82.16   70664.0  \n",
       "600037  45.90     3.30 -14.09   -92.27  16.46    3.92   67980.0  \n",
       "002617  -4.58    -0.30 -19.58     0.16  22.61   16.39   54735.0  \n",
       "002620   6.50     1.72 -49.50   -95.96  16.14    0.44   18562.0  \n",
       "002165   6.03     1.00 -20.88    32.86  23.44    5.35   35000.0  \n",
       "603385  19.86     5.38 -24.44   -45.72  29.31    5.81   20865.0  \n",
       "000856  -3.14    -1.38  -5.80  -105.94   4.44   -0.57   42398.0  \n",
       "601611  56.87     2.15 -10.32   -30.90   7.04    1.07  100053.0  \n",
       "002035  19.23     2.21 -48.07   -65.01  43.93    6.70   41436.0  \n",
       "603167  17.04     3.60 -44.70  -128.93  -0.13  -25.52   27253.0  \n",
       "603183   3.32     1.11   7.96    14.11  47.14   11.13   24155.0  \n",
       "300274  37.27     2.56 -16.78    -6.83  28.37    8.64   47654.0  \n",
       "...       ...      ...    ...      ...    ...     ...       ...  \n",
       "603931   1.87     0.00   0.00     0.00  32.32   20.49       0.0  \n",
       "605003   1.84     0.00   0.00     0.00  46.68   27.07       0.0  \n",
       "605008   4.93     0.00   0.00     0.00  28.34   13.87       0.0  \n",
       "605088   5.36     0.00   0.00     0.00  23.28    8.75       0.0  \n",
       "605100   3.71     0.00   0.00     0.00  23.95   14.28       0.0  \n",
       "605123   3.95     0.00   0.00     0.00  28.73   16.56       0.0  \n",
       "605178   6.45     0.00   0.00     0.00  39.15   17.75       0.0  \n",
       "605255   1.79     0.00   0.00     0.00  39.21   17.03       0.0  \n",
       "605333   1.59     0.00   0.00     0.00  16.40    1.95       0.0  \n",
       "605366   3.69     0.00   0.00     0.00  28.71   14.28       0.0  \n",
       "605388   4.71     0.00  -3.18    16.34  52.68   23.70       0.0  \n",
       "688055   0.94     0.00   0.00     0.00  20.12    2.71       0.0  \n",
       "688065   9.02     0.00   0.00     0.00  47.94   29.17       0.0  \n",
       "688155   1.21     0.00  12.20   155.81  46.11   19.71       0.0  \n",
       "688185  -3.91     0.00   0.00     0.00  91.49 -573.33       0.0  \n",
       "688229   1.50     0.00   0.00     0.00  74.73   12.33       0.0  \n",
       "688313   0.13     0.00   0.00     0.00  25.96    8.69       0.0  \n",
       "688335   1.04     0.00   0.00     0.00  34.42    6.97       0.0  \n",
       "688356   1.16     0.00   0.00     0.00  82.06   40.43       0.0  \n",
       "688379   3.07     0.00   0.00     0.00  15.68    5.17       0.0  \n",
       "688393   2.20     0.00   0.00     0.00  81.44   25.69       0.0  \n",
       "688519   2.96     0.00   0.00     0.00  15.99    7.28       0.0  \n",
       "688521 -16.44     0.00   0.00     0.00  36.57  -20.88       0.0  \n",
       "688596   2.04     0.00   0.00     0.00  25.67   -6.09       0.0  \n",
       "300878   4.33     0.00   0.00     0.00  73.34   18.94       0.0  \n",
       "300877   3.81     0.00   0.00     0.00  38.12   24.89       0.0  \n",
       "300876   1.46     0.00   0.00     0.00  34.81   22.51       0.0  \n",
       "300875   2.13     0.00   0.00     0.00  62.10   41.89       0.0  \n",
       "300873   4.32     0.00   0.00     0.00  33.53   20.48       0.0  \n",
       "300872   3.47     0.00   0.00     0.00  33.44    9.43       0.0  \n",
       "\n",
       "[3969 rows x 22 columns]"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "stockbasics"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'pandas.core.frame.DataFrame'>\n",
      "Index: 3969 entries, 688286 to 300872\n",
      "Data columns (total 22 columns):\n",
      "name                3969 non-null object\n",
      "industry            3969 non-null object\n",
      "area                3969 non-null object\n",
      "pe                  3969 non-null float64\n",
      "outstanding         3969 non-null float64\n",
      "totals              3969 non-null float64\n",
      "totalAssets         3969 non-null float64\n",
      "liquidAssets        3969 non-null float64\n",
      "fixedAssets         3969 non-null float64\n",
      "reserved            3969 non-null float64\n",
      "reservedPerShare    3969 non-null float64\n",
      "esp                 3969 non-null float64\n",
      "bvps                3969 non-null float64\n",
      "pb                  3969 non-null float64\n",
      "timeToMarket        3969 non-null int64\n",
      "undp                3969 non-null float64\n",
      "perundp             3969 non-null float64\n",
      "rev                 3969 non-null float64\n",
      "profit              3969 non-null float64\n",
      "gpr                 3969 non-null float64\n",
      "npr                 3969 non-null float64\n",
      "holders             3969 non-null float64\n",
      "dtypes: float64(18), int64(1), object(3)\n",
      "memory usage: 713.2+ KB\n"
     ]
    }
   ],
   "source": [
    "stockbasics.info()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>code</th>\n",
       "      <th>name</th>\n",
       "      <th>industry</th>\n",
       "      <th>area</th>\n",
       "      <th>pe</th>\n",
       "      <th>outstanding</th>\n",
       "      <th>totals</th>\n",
       "      <th>totalAssets</th>\n",
       "      <th>liquidAssets</th>\n",
       "      <th>fixedAssets</th>\n",
       "      <th>...</th>\n",
       "      <th>bvps</th>\n",
       "      <th>pb</th>\n",
       "      <th>timeToMarket</th>\n",
       "      <th>undp</th>\n",
       "      <th>perundp</th>\n",
       "      <th>rev</th>\n",
       "      <th>profit</th>\n",
       "      <th>gpr</th>\n",
       "      <th>npr</th>\n",
       "      <th>holders</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>688286</td>\n",
       "      <td>N敏芯</td>\n",
       "      <td>元器件</td>\n",
       "      <td>江苏</td>\n",
       "      <td>493.67</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.53</td>\n",
       "      <td>3.29</td>\n",
       "      <td>2.60</td>\n",
       "      <td>0.40</td>\n",
       "      <td>...</td>\n",
       "      <td>19.24</td>\n",
       "      <td>12.03</td>\n",
       "      <td>20200810</td>\n",
       "      <td>1.08</td>\n",
       "      <td>2.03</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>32.98</td>\n",
       "      <td>10.77</td>\n",
       "      <td>14845.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>688339</td>\n",
       "      <td>N亿华通</td>\n",
       "      <td>汽车配件</td>\n",
       "      <td>北京</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.15</td>\n",
       "      <td>0.71</td>\n",
       "      <td>16.74</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>...</td>\n",
       "      <td>32.08</td>\n",
       "      <td>5.83</td>\n",
       "      <td>20200810</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>39.32</td>\n",
       "      <td>-185.04</td>\n",
       "      <td>13727.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>688516</td>\n",
       "      <td>奥特维</td>\n",
       "      <td>专用机械</td>\n",
       "      <td>江苏</td>\n",
       "      <td>95.46</td>\n",
       "      <td>0.20</td>\n",
       "      <td>0.99</td>\n",
       "      <td>24.26</td>\n",
       "      <td>23.64</td>\n",
       "      <td>0.19</td>\n",
       "      <td>...</td>\n",
       "      <td>10.15</td>\n",
       "      <td>7.29</td>\n",
       "      <td>20200521</td>\n",
       "      <td>0.41</td>\n",
       "      <td>0.42</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>34.84</td>\n",
       "      <td>8.67</td>\n",
       "      <td>10057.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>688069</td>\n",
       "      <td>德林海</td>\n",
       "      <td>环境保护</td>\n",
       "      <td>江苏</td>\n",
       "      <td>106.64</td>\n",
       "      <td>0.14</td>\n",
       "      <td>0.59</td>\n",
       "      <td>4.13</td>\n",
       "      <td>3.13</td>\n",
       "      <td>0.05</td>\n",
       "      <td>...</td>\n",
       "      <td>21.15</td>\n",
       "      <td>4.75</td>\n",
       "      <td>20200722</td>\n",
       "      <td>1.82</td>\n",
       "      <td>3.05</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>49.42</td>\n",
       "      <td>29.16</td>\n",
       "      <td>15756.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>600839</td>\n",
       "      <td>四川长虹</td>\n",
       "      <td>家用电器</td>\n",
       "      <td>四川</td>\n",
       "      <td>0.00</td>\n",
       "      <td>46.14</td>\n",
       "      <td>46.16</td>\n",
       "      <td>720.92</td>\n",
       "      <td>506.64</td>\n",
       "      <td>72.79</td>\n",
       "      <td>...</td>\n",
       "      <td>2.74</td>\n",
       "      <td>1.23</td>\n",
       "      <td>19940311</td>\n",
       "      <td>42.57</td>\n",
       "      <td>0.92</td>\n",
       "      <td>-18.65</td>\n",
       "      <td>-832.82</td>\n",
       "      <td>8.21</td>\n",
       "      <td>-2.15</td>\n",
       "      <td>328929.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>5 rows × 23 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "     code  name industry area      pe  outstanding  totals  totalAssets  \\\n",
       "0  688286   N敏芯      元器件   江苏  493.67         0.12    0.53         3.29   \n",
       "1  688339  N亿华通     汽车配件   北京    0.00         0.15    0.71        16.74   \n",
       "2  688516   奥特维     专用机械   江苏   95.46         0.20    0.99        24.26   \n",
       "3  688069   德林海     环境保护   江苏  106.64         0.14    0.59         4.13   \n",
       "4  600839  四川长虹     家用电器   四川    0.00        46.14   46.16       720.92   \n",
       "\n",
       "   liquidAssets  fixedAssets  ...   bvps     pb  timeToMarket   undp  perundp  \\\n",
       "0          2.60         0.40  ...  19.24  12.03      20200810   1.08     2.03   \n",
       "1          0.00         0.00  ...  32.08   5.83      20200810   0.00     0.00   \n",
       "2         23.64         0.19  ...  10.15   7.29      20200521   0.41     0.42   \n",
       "3          3.13         0.05  ...  21.15   4.75      20200722   1.82     3.05   \n",
       "4        506.64        72.79  ...   2.74   1.23      19940311  42.57     0.92   \n",
       "\n",
       "     rev  profit    gpr     npr   holders  \n",
       "0   0.00    0.00  32.98   10.77   14845.0  \n",
       "1   0.00    0.00  39.32 -185.04   13727.0  \n",
       "2   0.00    0.00  34.84    8.67   10057.0  \n",
       "3   0.00    0.00  49.42   29.16   15756.0  \n",
       "4 -18.65 -832.82   8.21   -2.15  328929.0  \n",
       "\n",
       "[5 rows x 23 columns]"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#重置索引\n",
    "stockbasics.reset_index(inplace = True)\n",
    "\n",
    "stockbasics.head()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>code</th>\n",
       "      <th>name</th>\n",
       "      <th>industry</th>\n",
       "      <th>pe</th>\n",
       "      <th>pb</th>\n",
       "      <th>esp</th>\n",
       "      <th>rev</th>\n",
       "      <th>profit</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>119</th>\n",
       "      <td>601066</td>\n",
       "      <td>中信建投</td>\n",
       "      <td>证券</td>\n",
       "      <td>58.08</td>\n",
       "      <td>9.32</td>\n",
       "      <td>0.250</td>\n",
       "      <td>0.00</td>\n",
       "      <td>31.11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>144</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>1.486</td>\n",
       "      <td>37.49</td>\n",
       "      <td>37.66</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>210</th>\n",
       "      <td>601236</td>\n",
       "      <td>红塔证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>42.76</td>\n",
       "      <td>5.98</td>\n",
       "      <td>0.133</td>\n",
       "      <td>152.45</td>\n",
       "      <td>135.77</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>254</th>\n",
       "      <td>601628</td>\n",
       "      <td>中国人寿</td>\n",
       "      <td>保险</td>\n",
       "      <td>16.64</td>\n",
       "      <td>2.80</td>\n",
       "      <td>0.605</td>\n",
       "      <td>8.18</td>\n",
       "      <td>-34.36</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>326</th>\n",
       "      <td>600703</td>\n",
       "      <td>三安光电</td>\n",
       "      <td>半导体</td>\n",
       "      <td>79.81</td>\n",
       "      <td>5.14</td>\n",
       "      <td>0.100</td>\n",
       "      <td>-2.74</td>\n",
       "      <td>-36.95</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       code  name industry     pe    pb    esp     rev  profit\n",
       "119  601066  中信建投       证券  58.08  9.32  0.250    0.00   31.11\n",
       "144  601336  新华保险       保险   9.94  2.10  1.486   37.49   37.66\n",
       "210  601236  红塔证券       证券  42.76  5.98  0.133  152.45  135.77\n",
       "254  601628  中国人寿       保险  16.64  2.80  0.605    8.18  -34.36\n",
       "326  600703  三安光电      半导体  79.81  5.14  0.100   -2.74  -36.95"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#从3000多只股票中选出上证50股票\n",
    "\n",
    "data1 = stockbasics.loc[stockbasics['code'].isin(sz50) , \n",
    "                        ['code', 'name', 'industry','pe', 'pb','esp','rev', 'profit']]\n",
    "data1.head()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [],
   "source": [
    "data1.columns = ['代码', '股票名称', '所属行业', 'PE', 'PB', 'EPS', '收入同比增长', '利润同比增长']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>119</th>\n",
       "      <td>601066</td>\n",
       "      <td>中信建投</td>\n",
       "      <td>证券</td>\n",
       "      <td>58.08</td>\n",
       "      <td>9.32</td>\n",
       "      <td>0.250</td>\n",
       "      <td>0.00</td>\n",
       "      <td>31.11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>144</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>1.486</td>\n",
       "      <td>37.49</td>\n",
       "      <td>37.66</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>210</th>\n",
       "      <td>601236</td>\n",
       "      <td>红塔证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>42.76</td>\n",
       "      <td>5.98</td>\n",
       "      <td>0.133</td>\n",
       "      <td>152.45</td>\n",
       "      <td>135.77</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>254</th>\n",
       "      <td>601628</td>\n",
       "      <td>中国人寿</td>\n",
       "      <td>保险</td>\n",
       "      <td>16.64</td>\n",
       "      <td>2.80</td>\n",
       "      <td>0.605</td>\n",
       "      <td>8.18</td>\n",
       "      <td>-34.36</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>326</th>\n",
       "      <td>600703</td>\n",
       "      <td>三安光电</td>\n",
       "      <td>半导体</td>\n",
       "      <td>79.81</td>\n",
       "      <td>5.14</td>\n",
       "      <td>0.100</td>\n",
       "      <td>-2.74</td>\n",
       "      <td>-36.95</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "         代码  股票名称 所属行业     PE    PB    EPS  收入同比增长  利润同比增长\n",
       "119  601066  中信建投   证券  58.08  9.32  0.250    0.00   31.11\n",
       "144  601336  新华保险   保险   9.94  2.10  1.486   37.49   37.66\n",
       "210  601236  红塔证券   证券  42.76  5.98  0.133  152.45  135.77\n",
       "254  601628  中国人寿   保险  16.64  2.80  0.605    8.18  -34.36\n",
       "326  600703  三安光电  半导体  79.81  5.14  0.100   -2.74  -36.95"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data1.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [],
   "source": [
    "data1.reset_index(inplace = True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>601066</td>\n",
       "      <td>中信建投</td>\n",
       "      <td>证券</td>\n",
       "      <td>58.08</td>\n",
       "      <td>9.32</td>\n",
       "      <td>0.250</td>\n",
       "      <td>0.00</td>\n",
       "      <td>31.11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>1.486</td>\n",
       "      <td>37.49</td>\n",
       "      <td>37.66</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>601236</td>\n",
       "      <td>红塔证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>42.76</td>\n",
       "      <td>5.98</td>\n",
       "      <td>0.133</td>\n",
       "      <td>152.45</td>\n",
       "      <td>135.77</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>601628</td>\n",
       "      <td>中国人寿</td>\n",
       "      <td>保险</td>\n",
       "      <td>16.64</td>\n",
       "      <td>2.80</td>\n",
       "      <td>0.605</td>\n",
       "      <td>8.18</td>\n",
       "      <td>-34.36</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>600703</td>\n",
       "      <td>三安光电</td>\n",
       "      <td>半导体</td>\n",
       "      <td>79.81</td>\n",
       "      <td>5.14</td>\n",
       "      <td>0.100</td>\n",
       "      <td>-2.74</td>\n",
       "      <td>-36.95</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       代码  股票名称 所属行业     PE    PB    EPS  收入同比增长  利润同比增长\n",
       "0  601066  中信建投   证券  58.08  9.32  0.250    0.00   31.11\n",
       "1  601336  新华保险   保险   9.94  2.10  1.486   37.49   37.66\n",
       "2  601236  红塔证券   证券  42.76  5.98  0.133  152.45  135.77\n",
       "3  601628  中国人寿   保险  16.64  2.80  0.605    8.18  -34.36\n",
       "4  600703  三安光电  半导体  79.81  5.14  0.100   -2.74  -36.95"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "del data1['index']\n",
    "data1.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[Getting data:]##################################################################"
     ]
    }
   ],
   "source": [
    "# 获取盈利能力数据\n",
    "stockprofit = ts.get_profit_data(2020,1)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>code</th>\n",
       "      <th>name</th>\n",
       "      <th>roe</th>\n",
       "      <th>net_profit_ratio</th>\n",
       "      <th>gross_profit_rate</th>\n",
       "      <th>net_profits</th>\n",
       "      <th>eps</th>\n",
       "      <th>business_income</th>\n",
       "      <th>bips</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>002260</td>\n",
       "      <td>*ST德奥</td>\n",
       "      <td>58.16</td>\n",
       "      <td>68.55</td>\n",
       "      <td>20.6704</td>\n",
       "      <td>33.7153</td>\n",
       "      <td>NaN</td>\n",
       "      <td>49.1790</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>002069</td>\n",
       "      <td>獐子岛</td>\n",
       "      <td>52.87</td>\n",
       "      <td>0.93</td>\n",
       "      <td>8.7116</td>\n",
       "      <td>3.7139</td>\n",
       "      <td>0.0052</td>\n",
       "      <td>398.4875</td>\n",
       "      <td>0.5603</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>600961</td>\n",
       "      <td>株冶集团</td>\n",
       "      <td>40.07</td>\n",
       "      <td>1.21</td>\n",
       "      <td>4.6506</td>\n",
       "      <td>41.7089</td>\n",
       "      <td>0.0790</td>\n",
       "      <td>3422.5768</td>\n",
       "      <td>6.4888</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>002605</td>\n",
       "      <td>姚记科技</td>\n",
       "      <td>33.05</td>\n",
       "      <td>124.13</td>\n",
       "      <td>67.3586</td>\n",
       "      <td>663.4285</td>\n",
       "      <td>1.6588</td>\n",
       "      <td>534.4203</td>\n",
       "      <td>1.3362</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>002437</td>\n",
       "      <td>誉衡药业</td>\n",
       "      <td>30.17</td>\n",
       "      <td>113.35</td>\n",
       "      <td>67.9203</td>\n",
       "      <td>658.6003</td>\n",
       "      <td>NaN</td>\n",
       "      <td>581.0199</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "     code   name    roe  net_profit_ratio  gross_profit_rate  net_profits  \\\n",
       "0  002260  *ST德奥  58.16             68.55            20.6704      33.7153   \n",
       "1  002069    獐子岛  52.87              0.93             8.7116       3.7139   \n",
       "2  600961   株冶集团  40.07              1.21             4.6506      41.7089   \n",
       "3  002605   姚记科技  33.05            124.13            67.3586     663.4285   \n",
       "4  002437   誉衡药业  30.17            113.35            67.9203     658.6003   \n",
       "\n",
       "      eps  business_income    bips  \n",
       "0     NaN          49.1790     NaN  \n",
       "1  0.0052         398.4875  0.5603  \n",
       "2  0.0790        3422.5768  6.4888  \n",
       "3  1.6588         534.4203  1.3362  \n",
       "4     NaN         581.0199     NaN  "
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "stockprofit.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [],
   "source": [
    "data2 = stockprofit.loc[stockprofit['code'].isin(sz50),[ 'code','roe', 'net_profit_ratio', 'gross_profit_rate', 'eps']]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>code</th>\n",
       "      <th>roe</th>\n",
       "      <th>net_profit_ratio</th>\n",
       "      <th>gross_profit_rate</th>\n",
       "      <th>eps</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>46</th>\n",
       "      <td>600519</td>\n",
       "      <td>8.78</td>\n",
       "      <td>53.65</td>\n",
       "      <td>91.6722</td>\n",
       "      <td>10.4233</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>106</th>\n",
       "      <td>601012</td>\n",
       "      <td>6.31</td>\n",
       "      <td>21.67</td>\n",
       "      <td>31.8651</td>\n",
       "      <td>0.4941</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>158</th>\n",
       "      <td>601336</td>\n",
       "      <td>5.28</td>\n",
       "      <td>6.80</td>\n",
       "      <td>8.1895</td>\n",
       "      <td>1.4857</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>204</th>\n",
       "      <td>600031</td>\n",
       "      <td>4.72</td>\n",
       "      <td>12.70</td>\n",
       "      <td>28.1721</td>\n",
       "      <td>0.2600</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>238</th>\n",
       "      <td>601601</td>\n",
       "      <td>4.51</td>\n",
       "      <td>6.06</td>\n",
       "      <td>7.8438</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       code   roe  net_profit_ratio  gross_profit_rate      eps\n",
       "46   600519  8.78             53.65            91.6722  10.4233\n",
       "106  601012  6.31             21.67            31.8651   0.4941\n",
       "158  601336  5.28              6.80             8.1895   1.4857\n",
       "204  600031  4.72             12.70            28.1721   0.2600\n",
       "238  601601  4.51              6.06             7.8438      NaN"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data2.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [],
   "source": [
    "data2.columns = ['代码', 'ROE', '净利率', '毛利率', 'EPS']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>EPS</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>46</th>\n",
       "      <td>600519</td>\n",
       "      <td>8.78</td>\n",
       "      <td>53.65</td>\n",
       "      <td>91.6722</td>\n",
       "      <td>10.4233</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>106</th>\n",
       "      <td>601012</td>\n",
       "      <td>6.31</td>\n",
       "      <td>21.67</td>\n",
       "      <td>31.8651</td>\n",
       "      <td>0.4941</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>158</th>\n",
       "      <td>601336</td>\n",
       "      <td>5.28</td>\n",
       "      <td>6.80</td>\n",
       "      <td>8.1895</td>\n",
       "      <td>1.4857</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>204</th>\n",
       "      <td>600031</td>\n",
       "      <td>4.72</td>\n",
       "      <td>12.70</td>\n",
       "      <td>28.1721</td>\n",
       "      <td>0.2600</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>238</th>\n",
       "      <td>601601</td>\n",
       "      <td>4.51</td>\n",
       "      <td>6.06</td>\n",
       "      <td>7.8438</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "         代码   ROE    净利率      毛利率      EPS\n",
       "46   600519  8.78  53.65  91.6722  10.4233\n",
       "106  601012  6.31  21.67  31.8651   0.4941\n",
       "158  601336  5.28   6.80   8.1895   1.4857\n",
       "204  600031  4.72  12.70  28.1721   0.2600\n",
       "238  601601  4.51   6.06   7.8438      NaN"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data2.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [],
   "source": [
    "data2.reset_index(inplace = True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>EPS</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>600519</td>\n",
       "      <td>8.78</td>\n",
       "      <td>53.65</td>\n",
       "      <td>91.6722</td>\n",
       "      <td>10.4233</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601012</td>\n",
       "      <td>6.31</td>\n",
       "      <td>21.67</td>\n",
       "      <td>31.8651</td>\n",
       "      <td>0.4941</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>601336</td>\n",
       "      <td>5.28</td>\n",
       "      <td>6.80</td>\n",
       "      <td>8.1895</td>\n",
       "      <td>1.4857</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>600031</td>\n",
       "      <td>4.72</td>\n",
       "      <td>12.70</td>\n",
       "      <td>28.1721</td>\n",
       "      <td>0.2600</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>601601</td>\n",
       "      <td>4.51</td>\n",
       "      <td>6.06</td>\n",
       "      <td>7.8438</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       代码   ROE    净利率      毛利率      EPS\n",
       "0  600519  8.78  53.65  91.6722  10.4233\n",
       "1  601012  6.31  21.67  31.8651   0.4941\n",
       "2  601336  5.28   6.80   8.1895   1.4857\n",
       "3  600031  4.72  12.70  28.1721   0.2600\n",
       "4  601601  4.51   6.06   7.8438      NaN"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "del data2['index']\n",
    "data2.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[Getting data:]##################################################################"
     ]
    }
   ],
   "source": [
    "# 获取成长能力数据\n",
    "# nprg:净利润增长率（%）  nav:净资产增长率   epsg,每股收益增长率\n",
    "stockgrowth = ts.get_growth_data(2020,1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>code</th>\n",
       "      <th>name</th>\n",
       "      <th>mbrg</th>\n",
       "      <th>nprg</th>\n",
       "      <th>nav</th>\n",
       "      <th>targ</th>\n",
       "      <th>epsg</th>\n",
       "      <th>seg</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>002100</td>\n",
       "      <td>天康生物</td>\n",
       "      <td>64.6343</td>\n",
       "      <td>1.350063e+06</td>\n",
       "      <td>49.9003</td>\n",
       "      <td>22.3709</td>\n",
       "      <td>933.3333</td>\n",
       "      <td>53.2175</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>002459</td>\n",
       "      <td>晶澳科技</td>\n",
       "      <td>8355.9489</td>\n",
       "      <td>3.756666e+04</td>\n",
       "      <td>577.0703</td>\n",
       "      <td>1992.3702</td>\n",
       "      <td>10042.8571</td>\n",
       "      <td>551.2873</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>300629</td>\n",
       "      <td>新劲刚</td>\n",
       "      <td>89.9276</td>\n",
       "      <td>2.972065e+04</td>\n",
       "      <td>92.4303</td>\n",
       "      <td>128.3477</td>\n",
       "      <td>NaN</td>\n",
       "      <td>92.4303</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>600517</td>\n",
       "      <td>国网英大</td>\n",
       "      <td>-71.1959</td>\n",
       "      <td>8.225130e+03</td>\n",
       "      <td>375.6353</td>\n",
       "      <td>293.8155</td>\n",
       "      <td>4400.0000</td>\n",
       "      <td>313.5896</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>300799</td>\n",
       "      <td>左江科技</td>\n",
       "      <td>-78.5798</td>\n",
       "      <td>6.909078e+03</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>5253.8462</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "     code  name       mbrg          nprg       nav       targ        epsg  \\\n",
       "0  002100  天康生物    64.6343  1.350063e+06   49.9003    22.3709    933.3333   \n",
       "1  002459  晶澳科技  8355.9489  3.756666e+04  577.0703  1992.3702  10042.8571   \n",
       "2  300629   新劲刚    89.9276  2.972065e+04   92.4303   128.3477         NaN   \n",
       "3  600517  国网英大   -71.1959  8.225130e+03  375.6353   293.8155   4400.0000   \n",
       "4  300799  左江科技   -78.5798  6.909078e+03       NaN        NaN   5253.8462   \n",
       "\n",
       "        seg  \n",
       "0   53.2175  \n",
       "1  551.2873  \n",
       "2   92.4303  \n",
       "3  313.5896  \n",
       "4       NaN  "
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "stockgrowth.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [],
   "source": [
    "data3 = stockgrowth.loc[stockgrowth['code'].isin(sz50) ,\n",
    "                        [ 'code', 'nprg','nav','epsg']]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>code</th>\n",
       "      <th>nprg</th>\n",
       "      <th>nav</th>\n",
       "      <th>epsg</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>50</th>\n",
       "      <td>600745</td>\n",
       "      <td>681.8502</td>\n",
       "      <td>103.3323</td>\n",
       "      <td>714.2857</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>158</th>\n",
       "      <td>601012</td>\n",
       "      <td>193.1058</td>\n",
       "      <td>72.4518</td>\n",
       "      <td>122.7273</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>217</th>\n",
       "      <td>601236</td>\n",
       "      <td>128.8486</td>\n",
       "      <td>NaN</td>\n",
       "      <td>116.6667</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>342</th>\n",
       "      <td>603993</td>\n",
       "      <td>64.4872</td>\n",
       "      <td>0.8266</td>\n",
       "      <td>40.0000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>393</th>\n",
       "      <td>600547</td>\n",
       "      <td>54.3667</td>\n",
       "      <td>11.8784</td>\n",
       "      <td>5.8824</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       code      nprg       nav      epsg\n",
       "50   600745  681.8502  103.3323  714.2857\n",
       "158  601012  193.1058   72.4518  122.7273\n",
       "217  601236  128.8486       NaN  116.6667\n",
       "342  603993   64.4872    0.8266   40.0000\n",
       "393  600547   54.3667   11.8784    5.8824"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data3.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {},
   "outputs": [],
   "source": [
    "data3.columns = ['代码','净利润增长率%', '净资产增长率%','每股收益增长率%']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>50</th>\n",
       "      <td>600745</td>\n",
       "      <td>681.8502</td>\n",
       "      <td>103.3323</td>\n",
       "      <td>714.2857</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>158</th>\n",
       "      <td>601012</td>\n",
       "      <td>193.1058</td>\n",
       "      <td>72.4518</td>\n",
       "      <td>122.7273</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>217</th>\n",
       "      <td>601236</td>\n",
       "      <td>128.8486</td>\n",
       "      <td>NaN</td>\n",
       "      <td>116.6667</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>342</th>\n",
       "      <td>603993</td>\n",
       "      <td>64.4872</td>\n",
       "      <td>0.8266</td>\n",
       "      <td>40.0000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>393</th>\n",
       "      <td>600547</td>\n",
       "      <td>54.3667</td>\n",
       "      <td>11.8784</td>\n",
       "      <td>5.8824</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "         代码   净利润增长率%   净资产增长率%  每股收益增长率%\n",
       "50   600745  681.8502  103.3323  714.2857\n",
       "158  601012  193.1058   72.4518  122.7273\n",
       "217  601236  128.8486       NaN  116.6667\n",
       "342  603993   64.4872    0.8266   40.0000\n",
       "393  600547   54.3667   11.8784    5.8824"
      ]
     },
     "execution_count": 38,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data3.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>600745</td>\n",
       "      <td>681.8502</td>\n",
       "      <td>103.3323</td>\n",
       "      <td>714.2857</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601012</td>\n",
       "      <td>193.1058</td>\n",
       "      <td>72.4518</td>\n",
       "      <td>122.7273</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>601236</td>\n",
       "      <td>128.8486</td>\n",
       "      <td>NaN</td>\n",
       "      <td>116.6667</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>603993</td>\n",
       "      <td>64.4872</td>\n",
       "      <td>0.8266</td>\n",
       "      <td>40.0000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>600547</td>\n",
       "      <td>54.3667</td>\n",
       "      <td>11.8784</td>\n",
       "      <td>5.8824</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       代码   净利润增长率%   净资产增长率%  每股收益增长率%\n",
       "0  600745  681.8502  103.3323  714.2857\n",
       "1  601012  193.1058   72.4518  122.7273\n",
       "2  601236  128.8486       NaN  116.6667\n",
       "3  603993   64.4872    0.8266   40.0000\n",
       "4  600547   54.3667   11.8784    5.8824"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data3.reset_index(inplace = True)\n",
    "del data3['index']\n",
    "data3.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [],
   "source": [
    "#合并数据\n",
    "data_merged = pd.merge(data1, data2, how= 'left', on= '代码')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS_x</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>EPS_y</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>601066</td>\n",
       "      <td>中信建投</td>\n",
       "      <td>证券</td>\n",
       "      <td>58.08</td>\n",
       "      <td>9.32</td>\n",
       "      <td>0.250</td>\n",
       "      <td>0.00</td>\n",
       "      <td>31.11</td>\n",
       "      <td>3.32</td>\n",
       "      <td>44.52</td>\n",
       "      <td>57.0854</td>\n",
       "      <td>0.2551</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>1.486</td>\n",
       "      <td>37.49</td>\n",
       "      <td>37.66</td>\n",
       "      <td>5.28</td>\n",
       "      <td>6.80</td>\n",
       "      <td>8.1895</td>\n",
       "      <td>1.4857</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>601236</td>\n",
       "      <td>红塔证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>42.76</td>\n",
       "      <td>5.98</td>\n",
       "      <td>0.133</td>\n",
       "      <td>152.45</td>\n",
       "      <td>135.77</td>\n",
       "      <td>3.49</td>\n",
       "      <td>42.41</td>\n",
       "      <td>54.1248</td>\n",
       "      <td>0.1332</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>601628</td>\n",
       "      <td>中国人寿</td>\n",
       "      <td>保险</td>\n",
       "      <td>16.64</td>\n",
       "      <td>2.80</td>\n",
       "      <td>0.605</td>\n",
       "      <td>8.18</td>\n",
       "      <td>-34.36</td>\n",
       "      <td>4.13</td>\n",
       "      <td>5.05</td>\n",
       "      <td>6.2557</td>\n",
       "      <td>0.6046</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>600703</td>\n",
       "      <td>三安光电</td>\n",
       "      <td>半导体</td>\n",
       "      <td>79.81</td>\n",
       "      <td>5.14</td>\n",
       "      <td>0.100</td>\n",
       "      <td>-2.74</td>\n",
       "      <td>-36.95</td>\n",
       "      <td>1.76</td>\n",
       "      <td>23.28</td>\n",
       "      <td>28.2442</td>\n",
       "      <td>0.0960</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       代码  股票名称 所属行业     PE    PB  EPS_x  收入同比增长  利润同比增长   ROE    净利率  \\\n",
       "0  601066  中信建投   证券  58.08  9.32  0.250    0.00   31.11  3.32  44.52   \n",
       "1  601336  新华保险   保险   9.94  2.10  1.486   37.49   37.66  5.28   6.80   \n",
       "2  601236  红塔证券   证券  42.76  5.98  0.133  152.45  135.77  3.49  42.41   \n",
       "3  601628  中国人寿   保险  16.64  2.80  0.605    8.18  -34.36  4.13   5.05   \n",
       "4  600703  三安光电  半导体  79.81  5.14  0.100   -2.74  -36.95  1.76  23.28   \n",
       "\n",
       "       毛利率   EPS_y  \n",
       "0  57.0854  0.2551  \n",
       "1   8.1895  1.4857  \n",
       "2  54.1248  0.1332  \n",
       "3   6.2557  0.6046  \n",
       "4  28.2442  0.0960  "
      ]
     },
     "execution_count": 41,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {},
   "outputs": [],
   "source": [
    "data_merged= pd.merge(data_merged, data3, how = 'left', on = '代码')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS_x</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>EPS_y</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>601066</td>\n",
       "      <td>中信建投</td>\n",
       "      <td>证券</td>\n",
       "      <td>58.08</td>\n",
       "      <td>9.32</td>\n",
       "      <td>0.250</td>\n",
       "      <td>0.00</td>\n",
       "      <td>31.11</td>\n",
       "      <td>3.32</td>\n",
       "      <td>44.52</td>\n",
       "      <td>57.0854</td>\n",
       "      <td>0.2551</td>\n",
       "      <td>30.7295</td>\n",
       "      <td>18.8835</td>\n",
       "      <td>31.5789</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>1.486</td>\n",
       "      <td>37.49</td>\n",
       "      <td>37.66</td>\n",
       "      <td>5.28</td>\n",
       "      <td>6.80</td>\n",
       "      <td>8.1895</td>\n",
       "      <td>1.4857</td>\n",
       "      <td>37.6485</td>\n",
       "      <td>19.7391</td>\n",
       "      <td>37.9630</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>601236</td>\n",
       "      <td>红塔证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>42.76</td>\n",
       "      <td>5.98</td>\n",
       "      <td>0.133</td>\n",
       "      <td>152.45</td>\n",
       "      <td>135.77</td>\n",
       "      <td>3.49</td>\n",
       "      <td>42.41</td>\n",
       "      <td>54.1248</td>\n",
       "      <td>0.1332</td>\n",
       "      <td>128.8486</td>\n",
       "      <td>NaN</td>\n",
       "      <td>116.6667</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>601628</td>\n",
       "      <td>中国人寿</td>\n",
       "      <td>保险</td>\n",
       "      <td>16.64</td>\n",
       "      <td>2.80</td>\n",
       "      <td>0.605</td>\n",
       "      <td>8.18</td>\n",
       "      <td>-34.36</td>\n",
       "      <td>4.13</td>\n",
       "      <td>5.05</td>\n",
       "      <td>6.2557</td>\n",
       "      <td>0.6046</td>\n",
       "      <td>-33.8754</td>\n",
       "      <td>13.5514</td>\n",
       "      <td>-34.7826</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>600703</td>\n",
       "      <td>三安光电</td>\n",
       "      <td>半导体</td>\n",
       "      <td>79.81</td>\n",
       "      <td>5.14</td>\n",
       "      <td>0.100</td>\n",
       "      <td>-2.74</td>\n",
       "      <td>-36.95</td>\n",
       "      <td>1.76</td>\n",
       "      <td>23.28</td>\n",
       "      <td>28.2442</td>\n",
       "      <td>0.0960</td>\n",
       "      <td>-36.9547</td>\n",
       "      <td>1.2595</td>\n",
       "      <td>-33.3333</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       代码  股票名称 所属行业     PE    PB  EPS_x  收入同比增长  利润同比增长   ROE    净利率  \\\n",
       "0  601066  中信建投   证券  58.08  9.32  0.250    0.00   31.11  3.32  44.52   \n",
       "1  601336  新华保险   保险   9.94  2.10  1.486   37.49   37.66  5.28   6.80   \n",
       "2  601236  红塔证券   证券  42.76  5.98  0.133  152.45  135.77  3.49  42.41   \n",
       "3  601628  中国人寿   保险  16.64  2.80  0.605    8.18  -34.36  4.13   5.05   \n",
       "4  600703  三安光电  半导体  79.81  5.14  0.100   -2.74  -36.95  1.76  23.28   \n",
       "\n",
       "       毛利率   EPS_y   净利润增长率%  净资产增长率%  每股收益增长率%  \n",
       "0  57.0854  0.2551   30.7295  18.8835   31.5789  \n",
       "1   8.1895  1.4857   37.6485  19.7391   37.9630  \n",
       "2  54.1248  0.1332  128.8486      NaN  116.6667  \n",
       "3   6.2557  0.6046  -33.8754  13.5514  -34.7826  \n",
       "4  28.2442  0.0960  -36.9547   1.2595  -33.3333  "
      ]
     },
     "execution_count": 43,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [],
   "source": [
    "data_merged= data_merged.drop(columns=['EPS_y'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "metadata": {},
   "outputs": [],
   "source": [
    "data_merged.drop_duplicates(inplace = True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS_x</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>601066</td>\n",
       "      <td>中信建投</td>\n",
       "      <td>证券</td>\n",
       "      <td>58.08</td>\n",
       "      <td>9.32</td>\n",
       "      <td>0.250</td>\n",
       "      <td>0.00</td>\n",
       "      <td>31.11</td>\n",
       "      <td>3.32</td>\n",
       "      <td>44.52</td>\n",
       "      <td>57.0854</td>\n",
       "      <td>30.7295</td>\n",
       "      <td>18.8835</td>\n",
       "      <td>31.5789</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>1.486</td>\n",
       "      <td>37.49</td>\n",
       "      <td>37.66</td>\n",
       "      <td>5.28</td>\n",
       "      <td>6.80</td>\n",
       "      <td>8.1895</td>\n",
       "      <td>37.6485</td>\n",
       "      <td>19.7391</td>\n",
       "      <td>37.9630</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>601236</td>\n",
       "      <td>红塔证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>42.76</td>\n",
       "      <td>5.98</td>\n",
       "      <td>0.133</td>\n",
       "      <td>152.45</td>\n",
       "      <td>135.77</td>\n",
       "      <td>3.49</td>\n",
       "      <td>42.41</td>\n",
       "      <td>54.1248</td>\n",
       "      <td>128.8486</td>\n",
       "      <td>NaN</td>\n",
       "      <td>116.6667</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>601628</td>\n",
       "      <td>中国人寿</td>\n",
       "      <td>保险</td>\n",
       "      <td>16.64</td>\n",
       "      <td>2.80</td>\n",
       "      <td>0.605</td>\n",
       "      <td>8.18</td>\n",
       "      <td>-34.36</td>\n",
       "      <td>4.13</td>\n",
       "      <td>5.05</td>\n",
       "      <td>6.2557</td>\n",
       "      <td>-33.8754</td>\n",
       "      <td>13.5514</td>\n",
       "      <td>-34.7826</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>600703</td>\n",
       "      <td>三安光电</td>\n",
       "      <td>半导体</td>\n",
       "      <td>79.81</td>\n",
       "      <td>5.14</td>\n",
       "      <td>0.100</td>\n",
       "      <td>-2.74</td>\n",
       "      <td>-36.95</td>\n",
       "      <td>1.76</td>\n",
       "      <td>23.28</td>\n",
       "      <td>28.2442</td>\n",
       "      <td>-36.9547</td>\n",
       "      <td>1.2595</td>\n",
       "      <td>-33.3333</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       代码  股票名称 所属行业     PE    PB  EPS_x  收入同比增长  利润同比增长   ROE    净利率  \\\n",
       "0  601066  中信建投   证券  58.08  9.32  0.250    0.00   31.11  3.32  44.52   \n",
       "1  601336  新华保险   保险   9.94  2.10  1.486   37.49   37.66  5.28   6.80   \n",
       "2  601236  红塔证券   证券  42.76  5.98  0.133  152.45  135.77  3.49  42.41   \n",
       "3  601628  中国人寿   保险  16.64  2.80  0.605    8.18  -34.36  4.13   5.05   \n",
       "4  600703  三安光电  半导体  79.81  5.14  0.100   -2.74  -36.95  1.76  23.28   \n",
       "\n",
       "       毛利率   净利润增长率%  净资产增长率%  每股收益增长率%  \n",
       "0  57.0854   30.7295  18.8835   31.5789  \n",
       "1   8.1895   37.6485  19.7391   37.9630  \n",
       "2  54.1248  128.8486      NaN  116.6667  \n",
       "3   6.2557  -33.8754  13.5514  -34.7826  \n",
       "4  28.2442  -36.9547   1.2595  -33.3333  "
      ]
     },
     "execution_count": 46,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "metadata": {},
   "outputs": [],
   "source": [
    "#第二种方法\n",
    "\n",
    "from functools import reduce\n",
    "\n",
    "# 数据合并\n",
    "merge = lambda x,y: pd.merge(x, y, how='left', on='代码')     #定义了merge函数；\n",
    "data_merged2 = reduce(merge, [data1, data2, data3])\n",
    "data_merged.drop_duplicates(inplace=True)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS_x</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>601066</td>\n",
       "      <td>中信建投</td>\n",
       "      <td>证券</td>\n",
       "      <td>58.08</td>\n",
       "      <td>9.32</td>\n",
       "      <td>0.250</td>\n",
       "      <td>0.00</td>\n",
       "      <td>31.11</td>\n",
       "      <td>3.32</td>\n",
       "      <td>44.52</td>\n",
       "      <td>57.0854</td>\n",
       "      <td>30.7295</td>\n",
       "      <td>18.8835</td>\n",
       "      <td>31.5789</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>1.486</td>\n",
       "      <td>37.49</td>\n",
       "      <td>37.66</td>\n",
       "      <td>5.28</td>\n",
       "      <td>6.80</td>\n",
       "      <td>8.1895</td>\n",
       "      <td>37.6485</td>\n",
       "      <td>19.7391</td>\n",
       "      <td>37.9630</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>601236</td>\n",
       "      <td>红塔证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>42.76</td>\n",
       "      <td>5.98</td>\n",
       "      <td>0.133</td>\n",
       "      <td>152.45</td>\n",
       "      <td>135.77</td>\n",
       "      <td>3.49</td>\n",
       "      <td>42.41</td>\n",
       "      <td>54.1248</td>\n",
       "      <td>128.8486</td>\n",
       "      <td>NaN</td>\n",
       "      <td>116.6667</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>601628</td>\n",
       "      <td>中国人寿</td>\n",
       "      <td>保险</td>\n",
       "      <td>16.64</td>\n",
       "      <td>2.80</td>\n",
       "      <td>0.605</td>\n",
       "      <td>8.18</td>\n",
       "      <td>-34.36</td>\n",
       "      <td>4.13</td>\n",
       "      <td>5.05</td>\n",
       "      <td>6.2557</td>\n",
       "      <td>-33.8754</td>\n",
       "      <td>13.5514</td>\n",
       "      <td>-34.7826</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>600703</td>\n",
       "      <td>三安光电</td>\n",
       "      <td>半导体</td>\n",
       "      <td>79.81</td>\n",
       "      <td>5.14</td>\n",
       "      <td>0.100</td>\n",
       "      <td>-2.74</td>\n",
       "      <td>-36.95</td>\n",
       "      <td>1.76</td>\n",
       "      <td>23.28</td>\n",
       "      <td>28.2442</td>\n",
       "      <td>-36.9547</td>\n",
       "      <td>1.2595</td>\n",
       "      <td>-33.3333</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       代码  股票名称 所属行业     PE    PB  EPS_x  收入同比增长  利润同比增长   ROE    净利率  \\\n",
       "0  601066  中信建投   证券  58.08  9.32  0.250    0.00   31.11  3.32  44.52   \n",
       "1  601336  新华保险   保险   9.94  2.10  1.486   37.49   37.66  5.28   6.80   \n",
       "2  601236  红塔证券   证券  42.76  5.98  0.133  152.45  135.77  3.49  42.41   \n",
       "3  601628  中国人寿   保险  16.64  2.80  0.605    8.18  -34.36  4.13   5.05   \n",
       "4  600703  三安光电  半导体  79.81  5.14  0.100   -2.74  -36.95  1.76  23.28   \n",
       "\n",
       "       毛利率   净利润增长率%  净资产增长率%  每股收益增长率%  \n",
       "0  57.0854   30.7295  18.8835   31.5789  \n",
       "1   8.1895   37.6485  19.7391   37.9630  \n",
       "2  54.1248  128.8486      NaN  116.6667  \n",
       "3   6.2557  -33.8754  13.5514  -34.7826  \n",
       "4  28.2442  -36.9547   1.2595  -33.3333  "
      ]
     },
     "execution_count": 48,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged2 = data_merged2.drop(columns = 'EPS_y')\n",
    "data_merged2.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS_x</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "      <th>估值系数</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>601066</td>\n",
       "      <td>中信建投</td>\n",
       "      <td>证券</td>\n",
       "      <td>58.08</td>\n",
       "      <td>9.32</td>\n",
       "      <td>0.25</td>\n",
       "      <td>0.00</td>\n",
       "      <td>31.11</td>\n",
       "      <td>3.32</td>\n",
       "      <td>44.52</td>\n",
       "      <td>57.09</td>\n",
       "      <td>30.73</td>\n",
       "      <td>18.88</td>\n",
       "      <td>31.58</td>\n",
       "      <td>541.31</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>1.49</td>\n",
       "      <td>37.49</td>\n",
       "      <td>37.66</td>\n",
       "      <td>5.28</td>\n",
       "      <td>6.80</td>\n",
       "      <td>8.19</td>\n",
       "      <td>37.65</td>\n",
       "      <td>19.74</td>\n",
       "      <td>37.96</td>\n",
       "      <td>20.87</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>601236</td>\n",
       "      <td>红塔证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>42.76</td>\n",
       "      <td>5.98</td>\n",
       "      <td>0.13</td>\n",
       "      <td>152.45</td>\n",
       "      <td>135.77</td>\n",
       "      <td>3.49</td>\n",
       "      <td>42.41</td>\n",
       "      <td>54.12</td>\n",
       "      <td>128.85</td>\n",
       "      <td>NaN</td>\n",
       "      <td>116.67</td>\n",
       "      <td>255.70</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>601628</td>\n",
       "      <td>中国人寿</td>\n",
       "      <td>保险</td>\n",
       "      <td>16.64</td>\n",
       "      <td>2.80</td>\n",
       "      <td>0.60</td>\n",
       "      <td>8.18</td>\n",
       "      <td>-34.36</td>\n",
       "      <td>4.13</td>\n",
       "      <td>5.05</td>\n",
       "      <td>6.26</td>\n",
       "      <td>-33.88</td>\n",
       "      <td>13.55</td>\n",
       "      <td>-34.78</td>\n",
       "      <td>46.59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>600703</td>\n",
       "      <td>三安光电</td>\n",
       "      <td>半导体</td>\n",
       "      <td>79.81</td>\n",
       "      <td>5.14</td>\n",
       "      <td>0.10</td>\n",
       "      <td>-2.74</td>\n",
       "      <td>-36.95</td>\n",
       "      <td>1.76</td>\n",
       "      <td>23.28</td>\n",
       "      <td>28.24</td>\n",
       "      <td>-36.95</td>\n",
       "      <td>1.26</td>\n",
       "      <td>-33.33</td>\n",
       "      <td>410.22</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       代码  股票名称 所属行业     PE    PB  EPS_x  收入同比增长  利润同比增长   ROE    净利率    毛利率  \\\n",
       "0  601066  中信建投   证券  58.08  9.32   0.25    0.00   31.11  3.32  44.52  57.09   \n",
       "1  601336  新华保险   保险   9.94  2.10   1.49   37.49   37.66  5.28   6.80   8.19   \n",
       "2  601236  红塔证券   证券  42.76  5.98   0.13  152.45  135.77  3.49  42.41  54.12   \n",
       "3  601628  中国人寿   保险  16.64  2.80   0.60    8.18  -34.36  4.13   5.05   6.26   \n",
       "4  600703  三安光电  半导体  79.81  5.14   0.10   -2.74  -36.95  1.76  23.28  28.24   \n",
       "\n",
       "   净利润增长率%  净资产增长率%  每股收益增长率%    估值系数  \n",
       "0    30.73    18.88     31.58  541.31  \n",
       "1    37.65    19.74     37.96   20.87  \n",
       "2   128.85      NaN    116.67  255.70  \n",
       "3   -33.88    13.55    -34.78   46.59  \n",
       "4   -36.95     1.26    -33.33  410.22  "
      ]
     },
     "execution_count": 49,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 根据已有列计算新数据\n",
    "data_merged['估值系数'] = data_merged['PE'] * data_merged['PB']\n",
    "data_merged = round(data_merged,2)\n",
    "data_merged.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "count      50.000000\n",
       "mean      273.058200\n",
       "std       578.053987\n",
       "min         0.000000\n",
       "25%         4.447500\n",
       "50%        31.375000\n",
       "75%       314.612500\n",
       "max      3135.810000\n",
       "Name: 估值系数, dtype: float64"
      ]
     },
     "execution_count": 50,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged['估值系数'].describe()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "count    49.000000\n",
       "mean      2.434490\n",
       "std       2.080281\n",
       "min      -3.410000\n",
       "25%       1.470000\n",
       "50%       2.720000\n",
       "75%       3.450000\n",
       "max       8.780000\n",
       "Name: ROE, dtype: float64"
      ]
     },
     "execution_count": 51,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged['ROE'].describe()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "count    49.000000\n",
       "mean     16.560000\n",
       "std      16.530748\n",
       "min     -21.840000\n",
       "25%       4.030000\n",
       "50%       9.810000\n",
       "75%      31.710000\n",
       "max      53.650000\n",
       "Name: 净利率, dtype: float64"
      ]
     },
     "execution_count": 52,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged['净利率'].describe()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "count     50.000000\n",
       "mean      -9.381200\n",
       "std      127.789832\n",
       "min     -352.500000\n",
       "25%      -44.225000\n",
       "50%      -14.460000\n",
       "75%        9.140000\n",
       "max      681.850000\n",
       "Name: 净利润增长率%, dtype: float64"
      ]
     },
     "execution_count": 53,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged['净利润增长率%'].describe()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "count     48.000000\n",
       "mean      16.562292\n",
       "std       18.213483\n",
       "min       -5.490000\n",
       "25%        6.465000\n",
       "50%       14.005000\n",
       "75%       19.880000\n",
       "max      103.330000\n",
       "Name: 净资产增长率%, dtype: float64"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged['净资产增长率%'].describe()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "count     50.000000\n",
       "mean     -16.705400\n",
       "std      136.284628\n",
       "min     -433.330000\n",
       "25%      -42.420000\n",
       "50%      -14.205000\n",
       "75%        5.880000\n",
       "max      714.290000\n",
       "Name: 每股收益增长率%, dtype: float64"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged['每股收益增长率%'].describe()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "count    50.000000\n",
       "mean      0.680000\n",
       "std       2.524179\n",
       "min      -0.160000\n",
       "25%       0.137500\n",
       "50%       0.200000\n",
       "75%       0.477500\n",
       "max      17.990000\n",
       "Name: EPS_x, dtype: float64"
      ]
     },
     "execution_count": 56,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged['EPS_x'].describe()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "选出了6只股票\n"
     ]
    }
   ],
   "source": [
    "#条件选股；\n",
    "data_merged_filtered1 = data_merged.loc[(data_merged['估值系数'] < 31) & (data_merged['ROE'] > 3.46),\n",
    "                         ['代码', '股票名称', 'PE', 'PB', 'ROE', '估值系数']]\n",
    "\n",
    "print('选出了%d只股票'% len(data_merged_filtered1))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>ROE</th>\n",
       "      <th>估值系数</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>5.28</td>\n",
       "      <td>20.87</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>601601</td>\n",
       "      <td>中国太保</td>\n",
       "      <td>8.76</td>\n",
       "      <td>1.49</td>\n",
       "      <td>4.51</td>\n",
       "      <td>13.05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>601319</td>\n",
       "      <td>中国人保</td>\n",
       "      <td>11.37</td>\n",
       "      <td>1.71</td>\n",
       "      <td>3.75</td>\n",
       "      <td>19.44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>600036</td>\n",
       "      <td>招商银行</td>\n",
       "      <td>8.39</td>\n",
       "      <td>1.53</td>\n",
       "      <td>4.32</td>\n",
       "      <td>12.84</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>601318</td>\n",
       "      <td>中国平安</td>\n",
       "      <td>13.50</td>\n",
       "      <td>2.04</td>\n",
       "      <td>3.77</td>\n",
       "      <td>27.54</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>601166</td>\n",
       "      <td>兴业银行</td>\n",
       "      <td>3.92</td>\n",
       "      <td>0.65</td>\n",
       "      <td>3.72</td>\n",
       "      <td>2.55</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        代码  股票名称     PE    PB   ROE   估值系数\n",
       "1   601336  新华保险   9.94  2.10  5.28  20.87\n",
       "10  601601  中国太保   8.76  1.49  4.51  13.05\n",
       "12  601319  中国人保  11.37  1.71  3.75  19.44\n",
       "18  600036  招商银行   8.39  1.53  4.32  12.84\n",
       "21  601318  中国平安  13.50  2.04  3.77  27.54\n",
       "32  601166  兴业银行   3.92  0.65  3.72   2.55"
      ]
     },
     "execution_count": 58,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged_filtered1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "选出了6只股票\n"
     ]
    }
   ],
   "source": [
    "#条件选股；\n",
    "data_merged_filtered2 = data_merged.loc[(data_merged['净利润增长率%'] > 9) & (data_merged['净资产增长率%'] > 19),\n",
    "                         ['代码', '股票名称','净利润增长率%','净资产增长率%', '估值系数']]\n",
    "\n",
    "print('选出了%d只股票'% len(data_merged_filtered2))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>估值系数</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>37.65</td>\n",
       "      <td>19.74</td>\n",
       "      <td>20.87</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>601012</td>\n",
       "      <td>隆基股份</td>\n",
       "      <td>193.11</td>\n",
       "      <td>72.45</td>\n",
       "      <td>222.68</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>601818</td>\n",
       "      <td>光大银行</td>\n",
       "      <td>11.51</td>\n",
       "      <td>19.62</td>\n",
       "      <td>2.84</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>600745</td>\n",
       "      <td>闻泰科技</td>\n",
       "      <td>681.85</td>\n",
       "      <td>103.33</td>\n",
       "      <td>483.94</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>39</th>\n",
       "      <td>600519</td>\n",
       "      <td>贵州茅台</td>\n",
       "      <td>16.34</td>\n",
       "      <td>20.42</td>\n",
       "      <td>679.33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>44</th>\n",
       "      <td>600276</td>\n",
       "      <td>恒瑞医药</td>\n",
       "      <td>9.39</td>\n",
       "      <td>28.16</td>\n",
       "      <td>1642.57</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        代码  股票名称  净利润增长率%  净资产增长率%     估值系数\n",
       "1   601336  新华保险    37.65    19.74    20.87\n",
       "23  601012  隆基股份   193.11    72.45   222.68\n",
       "25  601818  光大银行    11.51    19.62     2.84\n",
       "28  600745  闻泰科技   681.85   103.33   483.94\n",
       "39  600519  贵州茅台    16.34    20.42   679.33\n",
       "44  600276  恒瑞医药     9.39    28.16  1642.57"
      ]
     },
     "execution_count": 60,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged_filtered2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>ROE</th>\n",
       "      <th>估值系数</th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>估值系数</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>5.28</td>\n",
       "      <td>20.87</td>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>37.65</td>\n",
       "      <td>19.74</td>\n",
       "      <td>20.87</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>601601</td>\n",
       "      <td>中国太保</td>\n",
       "      <td>8.76</td>\n",
       "      <td>1.49</td>\n",
       "      <td>4.51</td>\n",
       "      <td>13.05</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>601319</td>\n",
       "      <td>中国人保</td>\n",
       "      <td>11.37</td>\n",
       "      <td>1.71</td>\n",
       "      <td>3.75</td>\n",
       "      <td>19.44</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>600036</td>\n",
       "      <td>招商银行</td>\n",
       "      <td>8.39</td>\n",
       "      <td>1.53</td>\n",
       "      <td>4.32</td>\n",
       "      <td>12.84</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>601318</td>\n",
       "      <td>中国平安</td>\n",
       "      <td>13.50</td>\n",
       "      <td>2.04</td>\n",
       "      <td>3.77</td>\n",
       "      <td>27.54</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>601012</td>\n",
       "      <td>隆基股份</td>\n",
       "      <td>193.11</td>\n",
       "      <td>72.45</td>\n",
       "      <td>222.68</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>601818</td>\n",
       "      <td>光大银行</td>\n",
       "      <td>11.51</td>\n",
       "      <td>19.62</td>\n",
       "      <td>2.84</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>600745</td>\n",
       "      <td>闻泰科技</td>\n",
       "      <td>681.85</td>\n",
       "      <td>103.33</td>\n",
       "      <td>483.94</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>601166</td>\n",
       "      <td>兴业银行</td>\n",
       "      <td>3.92</td>\n",
       "      <td>0.65</td>\n",
       "      <td>3.72</td>\n",
       "      <td>2.55</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>39</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>600519</td>\n",
       "      <td>贵州茅台</td>\n",
       "      <td>16.34</td>\n",
       "      <td>20.42</td>\n",
       "      <td>679.33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>44</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>600276</td>\n",
       "      <td>恒瑞医药</td>\n",
       "      <td>9.39</td>\n",
       "      <td>28.16</td>\n",
       "      <td>1642.57</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        代码  股票名称     PE    PB   ROE   估值系数      代码  股票名称  净利润增长率%  净资产增长率%  \\\n",
       "1   601336  新华保险   9.94  2.10  5.28  20.87  601336  新华保险    37.65    19.74   \n",
       "10  601601  中国太保   8.76  1.49  4.51  13.05     NaN   NaN      NaN      NaN   \n",
       "12  601319  中国人保  11.37  1.71  3.75  19.44     NaN   NaN      NaN      NaN   \n",
       "18  600036  招商银行   8.39  1.53  4.32  12.84     NaN   NaN      NaN      NaN   \n",
       "21  601318  中国平安  13.50  2.04  3.77  27.54     NaN   NaN      NaN      NaN   \n",
       "23     NaN   NaN    NaN   NaN   NaN    NaN  601012  隆基股份   193.11    72.45   \n",
       "25     NaN   NaN    NaN   NaN   NaN    NaN  601818  光大银行    11.51    19.62   \n",
       "28     NaN   NaN    NaN   NaN   NaN    NaN  600745  闻泰科技   681.85   103.33   \n",
       "32  601166  兴业银行   3.92  0.65  3.72   2.55     NaN   NaN      NaN      NaN   \n",
       "39     NaN   NaN    NaN   NaN   NaN    NaN  600519  贵州茅台    16.34    20.42   \n",
       "44     NaN   NaN    NaN   NaN   NaN    NaN  600276  恒瑞医药     9.39    28.16   \n",
       "\n",
       "       估值系数  \n",
       "1     20.87  \n",
       "10      NaN  \n",
       "12      NaN  \n",
       "18      NaN  \n",
       "21      NaN  \n",
       "23   222.68  \n",
       "25     2.84  \n",
       "28   483.94  \n",
       "32      NaN  \n",
       "39   679.33  \n",
       "44  1642.57  "
      ]
     },
     "execution_count": 61,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.concat((data_merged_filtered1,data_merged_filtered2),axis = 1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 62,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码_l</th>\n",
       "      <th>股票名称_l</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>ROE</th>\n",
       "      <th>估值系数_l</th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>估值系数</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>5.28</td>\n",
       "      <td>20.87</td>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>37.65</td>\n",
       "      <td>19.74</td>\n",
       "      <td>20.87</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>601601</td>\n",
       "      <td>中国太保</td>\n",
       "      <td>8.76</td>\n",
       "      <td>1.49</td>\n",
       "      <td>4.51</td>\n",
       "      <td>13.05</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>601319</td>\n",
       "      <td>中国人保</td>\n",
       "      <td>11.37</td>\n",
       "      <td>1.71</td>\n",
       "      <td>3.75</td>\n",
       "      <td>19.44</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>600036</td>\n",
       "      <td>招商银行</td>\n",
       "      <td>8.39</td>\n",
       "      <td>1.53</td>\n",
       "      <td>4.32</td>\n",
       "      <td>12.84</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>601318</td>\n",
       "      <td>中国平安</td>\n",
       "      <td>13.50</td>\n",
       "      <td>2.04</td>\n",
       "      <td>3.77</td>\n",
       "      <td>27.54</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>601166</td>\n",
       "      <td>兴业银行</td>\n",
       "      <td>3.92</td>\n",
       "      <td>0.65</td>\n",
       "      <td>3.72</td>\n",
       "      <td>2.55</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "      代码_l 股票名称_l     PE    PB   ROE  估值系数_l      代码  股票名称  净利润增长率%  净资产增长率%  \\\n",
       "1   601336   新华保险   9.94  2.10  5.28   20.87  601336  新华保险    37.65    19.74   \n",
       "10  601601   中国太保   8.76  1.49  4.51   13.05     NaN   NaN      NaN      NaN   \n",
       "12  601319   中国人保  11.37  1.71  3.75   19.44     NaN   NaN      NaN      NaN   \n",
       "18  600036   招商银行   8.39  1.53  4.32   12.84     NaN   NaN      NaN      NaN   \n",
       "21  601318   中国平安  13.50  2.04  3.77   27.54     NaN   NaN      NaN      NaN   \n",
       "32  601166   兴业银行   3.92  0.65  3.72    2.55     NaN   NaN      NaN      NaN   \n",
       "\n",
       "     估值系数  \n",
       "1   20.87  \n",
       "10    NaN  \n",
       "12    NaN  \n",
       "18    NaN  \n",
       "21    NaN  \n",
       "32    NaN  "
      ]
     },
     "execution_count": 62,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged_filtered1.join(data_merged_filtered2,lsuffix = '_l')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>ROE</th>\n",
       "      <th>估值系数</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>5.28</td>\n",
       "      <td>20.87</td>\n",
       "      <td>37.65</td>\n",
       "      <td>19.74</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601601</td>\n",
       "      <td>中国太保</td>\n",
       "      <td>8.76</td>\n",
       "      <td>1.49</td>\n",
       "      <td>4.51</td>\n",
       "      <td>13.05</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>601319</td>\n",
       "      <td>中国人保</td>\n",
       "      <td>11.37</td>\n",
       "      <td>1.71</td>\n",
       "      <td>3.75</td>\n",
       "      <td>19.44</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>600036</td>\n",
       "      <td>招商银行</td>\n",
       "      <td>8.39</td>\n",
       "      <td>1.53</td>\n",
       "      <td>4.32</td>\n",
       "      <td>12.84</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>601318</td>\n",
       "      <td>中国平安</td>\n",
       "      <td>13.50</td>\n",
       "      <td>2.04</td>\n",
       "      <td>3.77</td>\n",
       "      <td>27.54</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>601166</td>\n",
       "      <td>兴业银行</td>\n",
       "      <td>3.92</td>\n",
       "      <td>0.65</td>\n",
       "      <td>3.72</td>\n",
       "      <td>2.55</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>601012</td>\n",
       "      <td>隆基股份</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>222.68</td>\n",
       "      <td>193.11</td>\n",
       "      <td>72.45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>601818</td>\n",
       "      <td>光大银行</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.84</td>\n",
       "      <td>11.51</td>\n",
       "      <td>19.62</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>600745</td>\n",
       "      <td>闻泰科技</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>483.94</td>\n",
       "      <td>681.85</td>\n",
       "      <td>103.33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>600519</td>\n",
       "      <td>贵州茅台</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>679.33</td>\n",
       "      <td>16.34</td>\n",
       "      <td>20.42</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>600276</td>\n",
       "      <td>恒瑞医药</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1642.57</td>\n",
       "      <td>9.39</td>\n",
       "      <td>28.16</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        代码  股票名称     PE    PB   ROE     估值系数  净利润增长率%  净资产增长率%\n",
       "0   601336  新华保险   9.94  2.10  5.28    20.87    37.65    19.74\n",
       "1   601601  中国太保   8.76  1.49  4.51    13.05      NaN      NaN\n",
       "2   601319  中国人保  11.37  1.71  3.75    19.44      NaN      NaN\n",
       "3   600036  招商银行   8.39  1.53  4.32    12.84      NaN      NaN\n",
       "4   601318  中国平安  13.50  2.04  3.77    27.54      NaN      NaN\n",
       "5   601166  兴业银行   3.92  0.65  3.72     2.55      NaN      NaN\n",
       "6   601012  隆基股份    NaN   NaN   NaN   222.68   193.11    72.45\n",
       "7   601818  光大银行    NaN   NaN   NaN     2.84    11.51    19.62\n",
       "8   600745  闻泰科技    NaN   NaN   NaN   483.94   681.85   103.33\n",
       "9   600519  贵州茅台    NaN   NaN   NaN   679.33    16.34    20.42\n",
       "10  600276  恒瑞医药    NaN   NaN   NaN  1642.57     9.39    28.16"
      ]
     },
     "execution_count": 63,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.merge(data_merged_filtered1,data_merged_filtered2, how = 'outer')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "metadata": {},
   "outputs": [],
   "source": [
    "data_merged_filtered1_2 = pd.merge(data_merged_filtered1,data_merged_filtered2, how = 'outer')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 65,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "选出了8只股票\n"
     ]
    }
   ],
   "source": [
    "#条件选股；\n",
    "data_merged_filtered3 = data_merged.loc[(data_merged['每股收益增长率%'] > 5.88) & (data_merged['EPS_x'] > 0.47),\n",
    "                         ['代码', '股票名称','每股收益增长率%','EPS_x', '估值系数']]\n",
    "\n",
    "print('选出了%d只股票'% len(data_merged_filtered3))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 66,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "      <th>EPS_x</th>\n",
       "      <th>估值系数</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>37.96</td>\n",
       "      <td>1.49</td>\n",
       "      <td>20.87</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>601601</td>\n",
       "      <td>中国太保</td>\n",
       "      <td>55.00</td>\n",
       "      <td>0.93</td>\n",
       "      <td>13.05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>600036</td>\n",
       "      <td>招商银行</td>\n",
       "      <td>10.00</td>\n",
       "      <td>1.10</td>\n",
       "      <td>12.84</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>601012</td>\n",
       "      <td>隆基股份</td>\n",
       "      <td>122.73</td>\n",
       "      <td>0.49</td>\n",
       "      <td>222.68</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>600745</td>\n",
       "      <td>闻泰科技</td>\n",
       "      <td>714.29</td>\n",
       "      <td>0.57</td>\n",
       "      <td>483.94</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>601166</td>\n",
       "      <td>兴业银行</td>\n",
       "      <td>6.32</td>\n",
       "      <td>1.01</td>\n",
       "      <td>2.55</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>39</th>\n",
       "      <td>600519</td>\n",
       "      <td>贵州茅台</td>\n",
       "      <td>16.69</td>\n",
       "      <td>17.99</td>\n",
       "      <td>679.33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>44</th>\n",
       "      <td>600276</td>\n",
       "      <td>恒瑞医药</td>\n",
       "      <td>7.41</td>\n",
       "      <td>0.50</td>\n",
       "      <td>1642.57</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        代码  股票名称  每股收益增长率%  EPS_x     估值系数\n",
       "1   601336  新华保险     37.96   1.49    20.87\n",
       "10  601601  中国太保     55.00   0.93    13.05\n",
       "18  600036  招商银行     10.00   1.10    12.84\n",
       "23  601012  隆基股份    122.73   0.49   222.68\n",
       "28  600745  闻泰科技    714.29   0.57   483.94\n",
       "32  601166  兴业银行      6.32   1.01     2.55\n",
       "39  600519  贵州茅台     16.69  17.99   679.33\n",
       "44  600276  恒瑞医药      7.41   0.50  1642.57"
      ]
     },
     "execution_count": 66,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged_filtered3"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 67,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>ROE</th>\n",
       "      <th>估值系数</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "      <th>EPS_x</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>5.28</td>\n",
       "      <td>20.87</td>\n",
       "      <td>37.65</td>\n",
       "      <td>19.74</td>\n",
       "      <td>37.96</td>\n",
       "      <td>1.49</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601601</td>\n",
       "      <td>中国太保</td>\n",
       "      <td>8.76</td>\n",
       "      <td>1.49</td>\n",
       "      <td>4.51</td>\n",
       "      <td>13.05</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>55.00</td>\n",
       "      <td>0.93</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>600036</td>\n",
       "      <td>招商银行</td>\n",
       "      <td>8.39</td>\n",
       "      <td>1.53</td>\n",
       "      <td>4.32</td>\n",
       "      <td>12.84</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10.00</td>\n",
       "      <td>1.10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>601166</td>\n",
       "      <td>兴业银行</td>\n",
       "      <td>3.92</td>\n",
       "      <td>0.65</td>\n",
       "      <td>3.72</td>\n",
       "      <td>2.55</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>6.32</td>\n",
       "      <td>1.01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>601012</td>\n",
       "      <td>隆基股份</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>222.68</td>\n",
       "      <td>193.11</td>\n",
       "      <td>72.45</td>\n",
       "      <td>122.73</td>\n",
       "      <td>0.49</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>600745</td>\n",
       "      <td>闻泰科技</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>483.94</td>\n",
       "      <td>681.85</td>\n",
       "      <td>103.33</td>\n",
       "      <td>714.29</td>\n",
       "      <td>0.57</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>600519</td>\n",
       "      <td>贵州茅台</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>679.33</td>\n",
       "      <td>16.34</td>\n",
       "      <td>20.42</td>\n",
       "      <td>16.69</td>\n",
       "      <td>17.99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>600276</td>\n",
       "      <td>恒瑞医药</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1642.57</td>\n",
       "      <td>9.39</td>\n",
       "      <td>28.16</td>\n",
       "      <td>7.41</td>\n",
       "      <td>0.50</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       代码  股票名称    PE    PB   ROE     估值系数  净利润增长率%  净资产增长率%  每股收益增长率%  EPS_x\n",
       "0  601336  新华保险  9.94  2.10  5.28    20.87    37.65    19.74     37.96   1.49\n",
       "1  601601  中国太保  8.76  1.49  4.51    13.05      NaN      NaN     55.00   0.93\n",
       "2  600036  招商银行  8.39  1.53  4.32    12.84      NaN      NaN     10.00   1.10\n",
       "3  601166  兴业银行  3.92  0.65  3.72     2.55      NaN      NaN      6.32   1.01\n",
       "4  601012  隆基股份   NaN   NaN   NaN   222.68   193.11    72.45    122.73   0.49\n",
       "5  600745  闻泰科技   NaN   NaN   NaN   483.94   681.85   103.33    714.29   0.57\n",
       "6  600519  贵州茅台   NaN   NaN   NaN   679.33    16.34    20.42     16.69  17.99\n",
       "7  600276  恒瑞医药   NaN   NaN   NaN  1642.57     9.39    28.16      7.41   0.50"
      ]
     },
     "execution_count": 67,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.merge(data_merged_filtered1_2,data_merged_filtered3, how = 'inner')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 68,
   "metadata": {},
   "outputs": [],
   "source": [
    "data_merged_filtered1_2_3 = pd.merge(data_merged_filtered1_2,data_merged_filtered3, how = 'inner')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 数据排列\n",
    "data_merged_filtered1_2_3.sort_values(['估值系数'], ascending=True, inplace=True) "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 70,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>ROE</th>\n",
       "      <th>估值系数</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "      <th>EPS_x</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>601166</td>\n",
       "      <td>兴业银行</td>\n",
       "      <td>3.92</td>\n",
       "      <td>0.65</td>\n",
       "      <td>3.72</td>\n",
       "      <td>2.55</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>6.32</td>\n",
       "      <td>1.01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>600036</td>\n",
       "      <td>招商银行</td>\n",
       "      <td>8.39</td>\n",
       "      <td>1.53</td>\n",
       "      <td>4.32</td>\n",
       "      <td>12.84</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>10.00</td>\n",
       "      <td>1.10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601601</td>\n",
       "      <td>中国太保</td>\n",
       "      <td>8.76</td>\n",
       "      <td>1.49</td>\n",
       "      <td>4.51</td>\n",
       "      <td>13.05</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>55.00</td>\n",
       "      <td>0.93</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>5.28</td>\n",
       "      <td>20.87</td>\n",
       "      <td>37.65</td>\n",
       "      <td>19.74</td>\n",
       "      <td>37.96</td>\n",
       "      <td>1.49</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>601012</td>\n",
       "      <td>隆基股份</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>222.68</td>\n",
       "      <td>193.11</td>\n",
       "      <td>72.45</td>\n",
       "      <td>122.73</td>\n",
       "      <td>0.49</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>600745</td>\n",
       "      <td>闻泰科技</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>483.94</td>\n",
       "      <td>681.85</td>\n",
       "      <td>103.33</td>\n",
       "      <td>714.29</td>\n",
       "      <td>0.57</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>600519</td>\n",
       "      <td>贵州茅台</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>679.33</td>\n",
       "      <td>16.34</td>\n",
       "      <td>20.42</td>\n",
       "      <td>16.69</td>\n",
       "      <td>17.99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>600276</td>\n",
       "      <td>恒瑞医药</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1642.57</td>\n",
       "      <td>9.39</td>\n",
       "      <td>28.16</td>\n",
       "      <td>7.41</td>\n",
       "      <td>0.50</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       代码  股票名称    PE    PB   ROE     估值系数  净利润增长率%  净资产增长率%  每股收益增长率%  EPS_x\n",
       "3  601166  兴业银行  3.92  0.65  3.72     2.55      NaN      NaN      6.32   1.01\n",
       "2  600036  招商银行  8.39  1.53  4.32    12.84      NaN      NaN     10.00   1.10\n",
       "1  601601  中国太保  8.76  1.49  4.51    13.05      NaN      NaN     55.00   0.93\n",
       "0  601336  新华保险  9.94  2.10  5.28    20.87    37.65    19.74     37.96   1.49\n",
       "4  601012  隆基股份   NaN   NaN   NaN   222.68   193.11    72.45    122.73   0.49\n",
       "5  600745  闻泰科技   NaN   NaN   NaN   483.94   681.85   103.33    714.29   0.57\n",
       "6  600519  贵州茅台   NaN   NaN   NaN   679.33    16.34    20.42     16.69  17.99\n",
       "7  600276  恒瑞医药   NaN   NaN   NaN  1642.57     9.39    28.16      7.41   0.50"
      ]
     },
     "execution_count": 70,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged_filtered1_2_3"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 71,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS_x</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "      <th>估值系数</th>\n",
       "      <th>成长性</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>42</th>\n",
       "      <td>600887</td>\n",
       "      <td>伊利股份</td>\n",
       "      <td>乳制品</td>\n",
       "      <td>48.46</td>\n",
       "      <td>8.23</td>\n",
       "      <td>0.19</td>\n",
       "      <td>-10.98</td>\n",
       "      <td>-49.78</td>\n",
       "      <td>4.25</td>\n",
       "      <td>5.56</td>\n",
       "      <td>37.46</td>\n",
       "      <td>-49.47</td>\n",
       "      <td>2.14</td>\n",
       "      <td>-48.65</td>\n",
       "      <td>398.83</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>43</th>\n",
       "      <td>601989</td>\n",
       "      <td>中国重工</td>\n",
       "      <td>船舶</td>\n",
       "      <td>285.28</td>\n",
       "      <td>1.35</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-25.67</td>\n",
       "      <td>-80.77</td>\n",
       "      <td>0.11</td>\n",
       "      <td>2.23</td>\n",
       "      <td>12.61</td>\n",
       "      <td>-80.70</td>\n",
       "      <td>0.67</td>\n",
       "      <td>-82.61</td>\n",
       "      <td>385.13</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>44</th>\n",
       "      <td>600276</td>\n",
       "      <td>恒瑞医药</td>\n",
       "      <td>化学制药</td>\n",
       "      <td>90.50</td>\n",
       "      <td>18.15</td>\n",
       "      <td>0.50</td>\n",
       "      <td>12.79</td>\n",
       "      <td>10.34</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>9.39</td>\n",
       "      <td>28.16</td>\n",
       "      <td>7.41</td>\n",
       "      <td>1642.57</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>45</th>\n",
       "      <td>600031</td>\n",
       "      <td>三一重工</td>\n",
       "      <td>工程机械</td>\n",
       "      <td>20.31</td>\n",
       "      <td>3.82</td>\n",
       "      <td>0.26</td>\n",
       "      <td>-18.92</td>\n",
       "      <td>-31.90</td>\n",
       "      <td>4.72</td>\n",
       "      <td>12.70</td>\n",
       "      <td>28.17</td>\n",
       "      <td>-33.41</td>\n",
       "      <td>19.81</td>\n",
       "      <td>-36.93</td>\n",
       "      <td>77.58</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>46</th>\n",
       "      <td>600309</td>\n",
       "      <td>万华化学</td>\n",
       "      <td>化工原料</td>\n",
       "      <td>38.13</td>\n",
       "      <td>4.81</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-3.82</td>\n",
       "      <td>-50.74</td>\n",
       "      <td>3.15</td>\n",
       "      <td>8.97</td>\n",
       "      <td>20.09</td>\n",
       "      <td>-49.06</td>\n",
       "      <td>6.63</td>\n",
       "      <td>-50.56</td>\n",
       "      <td>183.41</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>47</th>\n",
       "      <td>600690</td>\n",
       "      <td>海尔智家</td>\n",
       "      <td>家用电器</td>\n",
       "      <td>34.32</td>\n",
       "      <td>3.05</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-11.09</td>\n",
       "      <td>-50.16</td>\n",
       "      <td>2.20</td>\n",
       "      <td>2.48</td>\n",
       "      <td>27.44</td>\n",
       "      <td>-49.61</td>\n",
       "      <td>15.95</td>\n",
       "      <td>-51.34</td>\n",
       "      <td>104.68</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>48</th>\n",
       "      <td>600547</td>\n",
       "      <td>山东黄金</td>\n",
       "      <td>黄金</td>\n",
       "      <td>59.37</td>\n",
       "      <td>5.63</td>\n",
       "      <td>0.18</td>\n",
       "      <td>28.70</td>\n",
       "      <td>57.94</td>\n",
       "      <td>2.37</td>\n",
       "      <td>4.03</td>\n",
       "      <td>12.49</td>\n",
       "      <td>54.37</td>\n",
       "      <td>11.88</td>\n",
       "      <td>5.88</td>\n",
       "      <td>334.25</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>49</th>\n",
       "      <td>601888</td>\n",
       "      <td>中国中免</td>\n",
       "      <td>旅游服务</td>\n",
       "      <td>0.00</td>\n",
       "      <td>21.02</td>\n",
       "      <td>-0.06</td>\n",
       "      <td>-44.23</td>\n",
       "      <td>-105.21</td>\n",
       "      <td>-0.60</td>\n",
       "      <td>-1.57</td>\n",
       "      <td>42.55</td>\n",
       "      <td>-118.36</td>\n",
       "      <td>4.59</td>\n",
       "      <td>-105.21</td>\n",
       "      <td>0.00</td>\n",
       "      <td>亏损</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>50</th>\n",
       "      <td>603993</td>\n",
       "      <td>洛阳钼业</td>\n",
       "      <td>小金属</td>\n",
       "      <td>55.07</td>\n",
       "      <td>2.42</td>\n",
       "      <td>0.02</td>\n",
       "      <td>399.82</td>\n",
       "      <td>39.24</td>\n",
       "      <td>1.09</td>\n",
       "      <td>2.00</td>\n",
       "      <td>-5.16</td>\n",
       "      <td>64.49</td>\n",
       "      <td>0.83</td>\n",
       "      <td>40.00</td>\n",
       "      <td>133.27</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>51</th>\n",
       "      <td>600196</td>\n",
       "      <td>复星医药</td>\n",
       "      <td>化学制药</td>\n",
       "      <td>71.49</td>\n",
       "      <td>5.04</td>\n",
       "      <td>0.22</td>\n",
       "      <td>-12.62</td>\n",
       "      <td>-18.97</td>\n",
       "      <td>1.76</td>\n",
       "      <td>9.81</td>\n",
       "      <td>55.13</td>\n",
       "      <td>-23.78</td>\n",
       "      <td>15.00</td>\n",
       "      <td>-17.86</td>\n",
       "      <td>360.31</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        代码  股票名称  所属行业      PE     PB  EPS_x  收入同比增长  利润同比增长   ROE    净利率  \\\n",
       "42  600887  伊利股份   乳制品   48.46   8.23   0.19  -10.98  -49.78  4.25   5.56   \n",
       "43  601989  中国重工    船舶  285.28   1.35   0.00  -25.67  -80.77  0.11   2.23   \n",
       "44  600276  恒瑞医药  化学制药   90.50  18.15   0.50   12.79   10.34   NaN    NaN   \n",
       "45  600031  三一重工  工程机械   20.31   3.82   0.26  -18.92  -31.90  4.72  12.70   \n",
       "46  600309  万华化学  化工原料   38.13   4.81   0.44   -3.82  -50.74  3.15   8.97   \n",
       "47  600690  海尔智家  家用电器   34.32   3.05   0.16  -11.09  -50.16  2.20   2.48   \n",
       "48  600547  山东黄金    黄金   59.37   5.63   0.18   28.70   57.94  2.37   4.03   \n",
       "49  601888  中国中免  旅游服务    0.00  21.02  -0.06  -44.23 -105.21 -0.60  -1.57   \n",
       "50  603993  洛阳钼业   小金属   55.07   2.42   0.02  399.82   39.24  1.09   2.00   \n",
       "51  600196  复星医药  化学制药   71.49   5.04   0.22  -12.62  -18.97  1.76   9.81   \n",
       "\n",
       "      毛利率  净利润增长率%  净资产增长率%  每股收益增长率%     估值系数   成长性  \n",
       "42  37.46   -49.47     2.14    -48.65   398.83   高成长  \n",
       "43  12.61   -80.70     0.67    -82.61   385.13   低成长  \n",
       "44    NaN     9.39    28.16      7.41  1642.57  None  \n",
       "45  28.17   -33.41    19.81    -36.93    77.58   高成长  \n",
       "46  20.09   -49.06     6.63    -50.56   183.41   低成长  \n",
       "47  27.44   -49.61    15.95    -51.34   104.68   低成长  \n",
       "48  12.49    54.37    11.88      5.88   334.25   低成长  \n",
       "49  42.55  -118.36     4.59   -105.21     0.00    亏损  \n",
       "50  -5.16    64.49     0.83     40.00   133.27   低成长  \n",
       "51  55.13   -23.78    15.00    -17.86   360.31   低成长  "
      ]
     },
     "execution_count": 71,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 数据分类\n",
    "\n",
    "def map_func(x):\n",
    "    \"\"\"\n",
    "    作为 apply 函数的参数传入\n",
    "    :param x: df 中一行或一列数据，取决于 apply 函数的参数 axis\n",
    "    :return: 将每个计算结果组合，返回一个 series\n",
    "    \"\"\"    \n",
    "    if x['ROE'] > 3.49:\n",
    "        return '高成长'\n",
    "    elif x['ROE'] >= 0:\n",
    "        return '低成长'\n",
    "    elif x['ROE'] < 0:\n",
    "        return '亏损'\n",
    "    \n",
    "# 根据 ROE 数据计算“成长性”    \n",
    "data_merged['成长性'] = data_merged.apply(map_func, axis= 1)\n",
    "data_merged.tail(10)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS_x</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "      <th>估值系数</th>\n",
       "      <th>成长性</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>601166</td>\n",
       "      <td>兴业银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>3.92</td>\n",
       "      <td>0.65</td>\n",
       "      <td>1.01</td>\n",
       "      <td>5.54</td>\n",
       "      <td>6.75</td>\n",
       "      <td>3.72</td>\n",
       "      <td>41.75</td>\n",
       "      <td>48.06</td>\n",
       "      <td>6.90</td>\n",
       "      <td>17.15</td>\n",
       "      <td>6.32</td>\n",
       "      <td>2.55</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>600036</td>\n",
       "      <td>招商银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>8.39</td>\n",
       "      <td>1.53</td>\n",
       "      <td>1.10</td>\n",
       "      <td>11.44</td>\n",
       "      <td>10.12</td>\n",
       "      <td>4.32</td>\n",
       "      <td>36.28</td>\n",
       "      <td>45.86</td>\n",
       "      <td>9.64</td>\n",
       "      <td>13.16</td>\n",
       "      <td>10.00</td>\n",
       "      <td>12.84</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>601601</td>\n",
       "      <td>中国太保</td>\n",
       "      <td>保险</td>\n",
       "      <td>8.76</td>\n",
       "      <td>1.49</td>\n",
       "      <td>0.93</td>\n",
       "      <td>3.80</td>\n",
       "      <td>53.09</td>\n",
       "      <td>4.51</td>\n",
       "      <td>6.06</td>\n",
       "      <td>7.84</td>\n",
       "      <td>53.42</td>\n",
       "      <td>14.49</td>\n",
       "      <td>55.00</td>\n",
       "      <td>13.05</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>601319</td>\n",
       "      <td>中国人保</td>\n",
       "      <td>保险</td>\n",
       "      <td>11.37</td>\n",
       "      <td>1.71</td>\n",
       "      <td>0.16</td>\n",
       "      <td>3.21</td>\n",
       "      <td>19.94</td>\n",
       "      <td>3.75</td>\n",
       "      <td>4.18</td>\n",
       "      <td>7.18</td>\n",
       "      <td>21.18</td>\n",
       "      <td>12.35</td>\n",
       "      <td>23.08</td>\n",
       "      <td>19.44</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>1.49</td>\n",
       "      <td>37.49</td>\n",
       "      <td>37.66</td>\n",
       "      <td>5.28</td>\n",
       "      <td>6.80</td>\n",
       "      <td>8.19</td>\n",
       "      <td>37.65</td>\n",
       "      <td>19.74</td>\n",
       "      <td>37.96</td>\n",
       "      <td>20.87</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>601318</td>\n",
       "      <td>中国平安</td>\n",
       "      <td>保险</td>\n",
       "      <td>13.50</td>\n",
       "      <td>2.04</td>\n",
       "      <td>1.47</td>\n",
       "      <td>-13.22</td>\n",
       "      <td>-42.74</td>\n",
       "      <td>3.77</td>\n",
       "      <td>7.94</td>\n",
       "      <td>11.42</td>\n",
       "      <td>-38.50</td>\n",
       "      <td>23.28</td>\n",
       "      <td>-42.35</td>\n",
       "      <td>27.54</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>601628</td>\n",
       "      <td>中国人寿</td>\n",
       "      <td>保险</td>\n",
       "      <td>16.64</td>\n",
       "      <td>2.80</td>\n",
       "      <td>0.60</td>\n",
       "      <td>8.18</td>\n",
       "      <td>-34.36</td>\n",
       "      <td>4.13</td>\n",
       "      <td>5.05</td>\n",
       "      <td>6.26</td>\n",
       "      <td>-33.88</td>\n",
       "      <td>13.55</td>\n",
       "      <td>-34.78</td>\n",
       "      <td>46.59</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>45</th>\n",
       "      <td>600031</td>\n",
       "      <td>三一重工</td>\n",
       "      <td>工程机械</td>\n",
       "      <td>20.31</td>\n",
       "      <td>3.82</td>\n",
       "      <td>0.26</td>\n",
       "      <td>-18.92</td>\n",
       "      <td>-31.90</td>\n",
       "      <td>4.72</td>\n",
       "      <td>12.70</td>\n",
       "      <td>28.17</td>\n",
       "      <td>-33.41</td>\n",
       "      <td>19.81</td>\n",
       "      <td>-36.93</td>\n",
       "      <td>77.58</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>601012</td>\n",
       "      <td>隆基股份</td>\n",
       "      <td>电气设备</td>\n",
       "      <td>29.69</td>\n",
       "      <td>7.50</td>\n",
       "      <td>0.49</td>\n",
       "      <td>50.60</td>\n",
       "      <td>204.92</td>\n",
       "      <td>6.31</td>\n",
       "      <td>21.67</td>\n",
       "      <td>31.87</td>\n",
       "      <td>193.11</td>\n",
       "      <td>72.45</td>\n",
       "      <td>122.73</td>\n",
       "      <td>222.68</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>42</th>\n",
       "      <td>600887</td>\n",
       "      <td>伊利股份</td>\n",
       "      <td>乳制品</td>\n",
       "      <td>48.46</td>\n",
       "      <td>8.23</td>\n",
       "      <td>0.19</td>\n",
       "      <td>-10.98</td>\n",
       "      <td>-49.78</td>\n",
       "      <td>4.25</td>\n",
       "      <td>5.56</td>\n",
       "      <td>37.46</td>\n",
       "      <td>-49.47</td>\n",
       "      <td>2.14</td>\n",
       "      <td>-48.65</td>\n",
       "      <td>398.83</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>39</th>\n",
       "      <td>600519</td>\n",
       "      <td>贵州茅台</td>\n",
       "      <td>白酒</td>\n",
       "      <td>45.41</td>\n",
       "      <td>14.96</td>\n",
       "      <td>17.99</td>\n",
       "      <td>11.31</td>\n",
       "      <td>13.29</td>\n",
       "      <td>8.78</td>\n",
       "      <td>53.65</td>\n",
       "      <td>91.67</td>\n",
       "      <td>16.34</td>\n",
       "      <td>20.42</td>\n",
       "      <td>16.69</td>\n",
       "      <td>679.33</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        代码  股票名称  所属行业     PE     PB  EPS_x  收入同比增长  利润同比增长   ROE    净利率  \\\n",
       "32  601166  兴业银行    银行   3.92   0.65   1.01    5.54    6.75  3.72  41.75   \n",
       "18  600036  招商银行    银行   8.39   1.53   1.10   11.44   10.12  4.32  36.28   \n",
       "10  601601  中国太保    保险   8.76   1.49   0.93    3.80   53.09  4.51   6.06   \n",
       "12  601319  中国人保    保险  11.37   1.71   0.16    3.21   19.94  3.75   4.18   \n",
       "1   601336  新华保险    保险   9.94   2.10   1.49   37.49   37.66  5.28   6.80   \n",
       "21  601318  中国平安    保险  13.50   2.04   1.47  -13.22  -42.74  3.77   7.94   \n",
       "3   601628  中国人寿    保险  16.64   2.80   0.60    8.18  -34.36  4.13   5.05   \n",
       "45  600031  三一重工  工程机械  20.31   3.82   0.26  -18.92  -31.90  4.72  12.70   \n",
       "23  601012  隆基股份  电气设备  29.69   7.50   0.49   50.60  204.92  6.31  21.67   \n",
       "42  600887  伊利股份   乳制品  48.46   8.23   0.19  -10.98  -49.78  4.25   5.56   \n",
       "39  600519  贵州茅台    白酒  45.41  14.96  17.99   11.31   13.29  8.78  53.65   \n",
       "\n",
       "      毛利率  净利润增长率%  净资产增长率%  每股收益增长率%    估值系数  成长性  \n",
       "32  48.06     6.90    17.15      6.32    2.55  高成长  \n",
       "18  45.86     9.64    13.16     10.00   12.84  高成长  \n",
       "10   7.84    53.42    14.49     55.00   13.05  高成长  \n",
       "12   7.18    21.18    12.35     23.08   19.44  高成长  \n",
       "1    8.19    37.65    19.74     37.96   20.87  高成长  \n",
       "21  11.42   -38.50    23.28    -42.35   27.54  高成长  \n",
       "3    6.26   -33.88    13.55    -34.78   46.59  高成长  \n",
       "45  28.17   -33.41    19.81    -36.93   77.58  高成长  \n",
       "23  31.87   193.11    72.45    122.73  222.68  高成长  \n",
       "42  37.46   -49.47     2.14    -48.65  398.83  高成长  \n",
       "39  91.67    16.34    20.42     16.69  679.33  高成长  "
      ]
     },
     "execution_count": 72,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 对高成长分类按照‘烟蒂系数’做升序排列\n",
    "# 选择具体的某一列，按照一定的顺序进行呈现；\n",
    "data_growth = data_merged[data_merged['成长性'] == '高成长'].sort_values(['估值系数'], ascending=True)\n",
    "data_growth.head(50)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS_x</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "      <th>估值系数</th>\n",
       "      <th>成长性</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>39</th>\n",
       "      <td>600519</td>\n",
       "      <td>贵州茅台</td>\n",
       "      <td>白酒</td>\n",
       "      <td>45.41</td>\n",
       "      <td>14.96</td>\n",
       "      <td>17.99</td>\n",
       "      <td>11.31</td>\n",
       "      <td>13.29</td>\n",
       "      <td>8.78</td>\n",
       "      <td>53.65</td>\n",
       "      <td>91.67</td>\n",
       "      <td>16.34</td>\n",
       "      <td>20.42</td>\n",
       "      <td>16.69</td>\n",
       "      <td>679.33</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>601012</td>\n",
       "      <td>隆基股份</td>\n",
       "      <td>电气设备</td>\n",
       "      <td>29.69</td>\n",
       "      <td>7.50</td>\n",
       "      <td>0.49</td>\n",
       "      <td>50.60</td>\n",
       "      <td>204.92</td>\n",
       "      <td>6.31</td>\n",
       "      <td>21.67</td>\n",
       "      <td>31.87</td>\n",
       "      <td>193.11</td>\n",
       "      <td>72.45</td>\n",
       "      <td>122.73</td>\n",
       "      <td>222.68</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>1.49</td>\n",
       "      <td>37.49</td>\n",
       "      <td>37.66</td>\n",
       "      <td>5.28</td>\n",
       "      <td>6.80</td>\n",
       "      <td>8.19</td>\n",
       "      <td>37.65</td>\n",
       "      <td>19.74</td>\n",
       "      <td>37.96</td>\n",
       "      <td>20.87</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>45</th>\n",
       "      <td>600031</td>\n",
       "      <td>三一重工</td>\n",
       "      <td>工程机械</td>\n",
       "      <td>20.31</td>\n",
       "      <td>3.82</td>\n",
       "      <td>0.26</td>\n",
       "      <td>-18.92</td>\n",
       "      <td>-31.90</td>\n",
       "      <td>4.72</td>\n",
       "      <td>12.70</td>\n",
       "      <td>28.17</td>\n",
       "      <td>-33.41</td>\n",
       "      <td>19.81</td>\n",
       "      <td>-36.93</td>\n",
       "      <td>77.58</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>601601</td>\n",
       "      <td>中国太保</td>\n",
       "      <td>保险</td>\n",
       "      <td>8.76</td>\n",
       "      <td>1.49</td>\n",
       "      <td>0.93</td>\n",
       "      <td>3.80</td>\n",
       "      <td>53.09</td>\n",
       "      <td>4.51</td>\n",
       "      <td>6.06</td>\n",
       "      <td>7.84</td>\n",
       "      <td>53.42</td>\n",
       "      <td>14.49</td>\n",
       "      <td>55.00</td>\n",
       "      <td>13.05</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>600036</td>\n",
       "      <td>招商银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>8.39</td>\n",
       "      <td>1.53</td>\n",
       "      <td>1.10</td>\n",
       "      <td>11.44</td>\n",
       "      <td>10.12</td>\n",
       "      <td>4.32</td>\n",
       "      <td>36.28</td>\n",
       "      <td>45.86</td>\n",
       "      <td>9.64</td>\n",
       "      <td>13.16</td>\n",
       "      <td>10.00</td>\n",
       "      <td>12.84</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>42</th>\n",
       "      <td>600887</td>\n",
       "      <td>伊利股份</td>\n",
       "      <td>乳制品</td>\n",
       "      <td>48.46</td>\n",
       "      <td>8.23</td>\n",
       "      <td>0.19</td>\n",
       "      <td>-10.98</td>\n",
       "      <td>-49.78</td>\n",
       "      <td>4.25</td>\n",
       "      <td>5.56</td>\n",
       "      <td>37.46</td>\n",
       "      <td>-49.47</td>\n",
       "      <td>2.14</td>\n",
       "      <td>-48.65</td>\n",
       "      <td>398.83</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>601628</td>\n",
       "      <td>中国人寿</td>\n",
       "      <td>保险</td>\n",
       "      <td>16.64</td>\n",
       "      <td>2.80</td>\n",
       "      <td>0.60</td>\n",
       "      <td>8.18</td>\n",
       "      <td>-34.36</td>\n",
       "      <td>4.13</td>\n",
       "      <td>5.05</td>\n",
       "      <td>6.26</td>\n",
       "      <td>-33.88</td>\n",
       "      <td>13.55</td>\n",
       "      <td>-34.78</td>\n",
       "      <td>46.59</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>601318</td>\n",
       "      <td>中国平安</td>\n",
       "      <td>保险</td>\n",
       "      <td>13.50</td>\n",
       "      <td>2.04</td>\n",
       "      <td>1.47</td>\n",
       "      <td>-13.22</td>\n",
       "      <td>-42.74</td>\n",
       "      <td>3.77</td>\n",
       "      <td>7.94</td>\n",
       "      <td>11.42</td>\n",
       "      <td>-38.50</td>\n",
       "      <td>23.28</td>\n",
       "      <td>-42.35</td>\n",
       "      <td>27.54</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>601319</td>\n",
       "      <td>中国人保</td>\n",
       "      <td>保险</td>\n",
       "      <td>11.37</td>\n",
       "      <td>1.71</td>\n",
       "      <td>0.16</td>\n",
       "      <td>3.21</td>\n",
       "      <td>19.94</td>\n",
       "      <td>3.75</td>\n",
       "      <td>4.18</td>\n",
       "      <td>7.18</td>\n",
       "      <td>21.18</td>\n",
       "      <td>12.35</td>\n",
       "      <td>23.08</td>\n",
       "      <td>19.44</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>601166</td>\n",
       "      <td>兴业银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>3.92</td>\n",
       "      <td>0.65</td>\n",
       "      <td>1.01</td>\n",
       "      <td>5.54</td>\n",
       "      <td>6.75</td>\n",
       "      <td>3.72</td>\n",
       "      <td>41.75</td>\n",
       "      <td>48.06</td>\n",
       "      <td>6.90</td>\n",
       "      <td>17.15</td>\n",
       "      <td>6.32</td>\n",
       "      <td>2.55</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        代码  股票名称  所属行业     PE     PB  EPS_x  收入同比增长  利润同比增长   ROE    净利率  \\\n",
       "39  600519  贵州茅台    白酒  45.41  14.96  17.99   11.31   13.29  8.78  53.65   \n",
       "23  601012  隆基股份  电气设备  29.69   7.50   0.49   50.60  204.92  6.31  21.67   \n",
       "1   601336  新华保险    保险   9.94   2.10   1.49   37.49   37.66  5.28   6.80   \n",
       "45  600031  三一重工  工程机械  20.31   3.82   0.26  -18.92  -31.90  4.72  12.70   \n",
       "10  601601  中国太保    保险   8.76   1.49   0.93    3.80   53.09  4.51   6.06   \n",
       "18  600036  招商银行    银行   8.39   1.53   1.10   11.44   10.12  4.32  36.28   \n",
       "42  600887  伊利股份   乳制品  48.46   8.23   0.19  -10.98  -49.78  4.25   5.56   \n",
       "3   601628  中国人寿    保险  16.64   2.80   0.60    8.18  -34.36  4.13   5.05   \n",
       "21  601318  中国平安    保险  13.50   2.04   1.47  -13.22  -42.74  3.77   7.94   \n",
       "12  601319  中国人保    保险  11.37   1.71   0.16    3.21   19.94  3.75   4.18   \n",
       "32  601166  兴业银行    银行   3.92   0.65   1.01    5.54    6.75  3.72  41.75   \n",
       "\n",
       "      毛利率  净利润增长率%  净资产增长率%  每股收益增长率%    估值系数  成长性  \n",
       "39  91.67    16.34    20.42     16.69  679.33  高成长  \n",
       "23  31.87   193.11    72.45    122.73  222.68  高成长  \n",
       "1    8.19    37.65    19.74     37.96   20.87  高成长  \n",
       "45  28.17   -33.41    19.81    -36.93   77.58  高成长  \n",
       "10   7.84    53.42    14.49     55.00   13.05  高成长  \n",
       "18  45.86     9.64    13.16     10.00   12.84  高成长  \n",
       "42  37.46   -49.47     2.14    -48.65  398.83  高成长  \n",
       "3    6.26   -33.88    13.55    -34.78   46.59  高成长  \n",
       "21  11.42   -38.50    23.28    -42.35   27.54  高成长  \n",
       "12   7.18    21.18    12.35     23.08   19.44  高成长  \n",
       "32  48.06     6.90    17.15      6.32    2.55  高成长  "
      ]
     },
     "execution_count": 73,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_profit = data_merged[data_merged['成长性'] == '高成长'].sort_values(['ROE'], ascending=False)\n",
    "data_profit.head(50)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 74,
   "metadata": {},
   "outputs": [],
   "source": [
    "def group_func(df):\n",
    "    \"\"\"\n",
    "    作为 groupby.apply 函数的参数传入\n",
    "    :param df: 实际是经过聚合后的单一类的 dataframe\n",
    "    :return: 返回 df 按照’烟蒂系数‘排序后的前三位\n",
    "    \"\"\"\n",
    "    return df.sort_values(['估值系数'], ascending=True)[:3]\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 75,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 按‘成长性’分组，筛选每个分组中‘烟蒂系数’最低的两个个股\n",
    "data_grouped = data_merged.groupby('成长性')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 76,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<pandas.core.groupby.generic.DataFrameGroupBy object at 0x000002A4F1E0F978>"
      ]
     },
     "execution_count": 76,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_grouped"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 77,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "成长性\n",
       "亏损      4\n",
       "低成长    34\n",
       "高成长    11\n",
       "dtype: int64"
      ]
     },
     "execution_count": 77,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_grouped.size()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 78,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS_x</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "      <th>估值系数</th>\n",
       "      <th>成长性</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>成长性</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th rowspan=\"3\" valign=\"top\">亏损</th>\n",
       "      <th>14</th>\n",
       "      <td>600588</td>\n",
       "      <td>用友网络</td>\n",
       "      <td>软件服务</td>\n",
       "      <td>0.00</td>\n",
       "      <td>21.46</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>-13.06</td>\n",
       "      <td>-389.30</td>\n",
       "      <td>-3.41</td>\n",
       "      <td>-21.84</td>\n",
       "      <td>46.39</td>\n",
       "      <td>-352.50</td>\n",
       "      <td>8.94</td>\n",
       "      <td>-433.33</td>\n",
       "      <td>0.00</td>\n",
       "      <td>亏损</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33</th>\n",
       "      <td>601857</td>\n",
       "      <td>中国石油</td>\n",
       "      <td>石油开采</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.67</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>-14.41</td>\n",
       "      <td>-258.46</td>\n",
       "      <td>-1.33</td>\n",
       "      <td>-3.18</td>\n",
       "      <td>16.41</td>\n",
       "      <td>-183.22</td>\n",
       "      <td>0.14</td>\n",
       "      <td>-258.93</td>\n",
       "      <td>0.00</td>\n",
       "      <td>亏损</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>37</th>\n",
       "      <td>600028</td>\n",
       "      <td>中国石化</td>\n",
       "      <td>石油加工</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.68</td>\n",
       "      <td>-0.16</td>\n",
       "      <td>-22.59</td>\n",
       "      <td>-234.00</td>\n",
       "      <td>-2.77</td>\n",
       "      <td>-3.56</td>\n",
       "      <td>10.12</td>\n",
       "      <td>-213.86</td>\n",
       "      <td>-3.90</td>\n",
       "      <td>-233.61</td>\n",
       "      <td>0.00</td>\n",
       "      <td>亏损</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"3\" valign=\"top\">低成长</th>\n",
       "      <th>29</th>\n",
       "      <td>600016</td>\n",
       "      <td>民生银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>3.68</td>\n",
       "      <td>0.52</td>\n",
       "      <td>0.38</td>\n",
       "      <td>12.48</td>\n",
       "      <td>5.43</td>\n",
       "      <td>3.09</td>\n",
       "      <td>33.75</td>\n",
       "      <td>40.77</td>\n",
       "      <td>5.28</td>\n",
       "      <td>22.45</td>\n",
       "      <td>5.56</td>\n",
       "      <td>1.91</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>601328</td>\n",
       "      <td>交通银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>4.14</td>\n",
       "      <td>0.50</td>\n",
       "      <td>0.25</td>\n",
       "      <td>4.67</td>\n",
       "      <td>1.80</td>\n",
       "      <td>2.64</td>\n",
       "      <td>33.00</td>\n",
       "      <td>37.49</td>\n",
       "      <td>0.91</td>\n",
       "      <td>13.20</td>\n",
       "      <td>-10.71</td>\n",
       "      <td>2.07</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>600000</td>\n",
       "      <td>浦发银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>4.45</td>\n",
       "      <td>0.60</td>\n",
       "      <td>0.56</td>\n",
       "      <td>10.66</td>\n",
       "      <td>5.48</td>\n",
       "      <td>3.01</td>\n",
       "      <td>31.32</td>\n",
       "      <td>37.39</td>\n",
       "      <td>5.44</td>\n",
       "      <td>17.60</td>\n",
       "      <td>5.66</td>\n",
       "      <td>2.67</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"3\" valign=\"top\">高成长</th>\n",
       "      <th>32</th>\n",
       "      <td>601166</td>\n",
       "      <td>兴业银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>3.92</td>\n",
       "      <td>0.65</td>\n",
       "      <td>1.01</td>\n",
       "      <td>5.54</td>\n",
       "      <td>6.75</td>\n",
       "      <td>3.72</td>\n",
       "      <td>41.75</td>\n",
       "      <td>48.06</td>\n",
       "      <td>6.90</td>\n",
       "      <td>17.15</td>\n",
       "      <td>6.32</td>\n",
       "      <td>2.55</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>600036</td>\n",
       "      <td>招商银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>8.39</td>\n",
       "      <td>1.53</td>\n",
       "      <td>1.10</td>\n",
       "      <td>11.44</td>\n",
       "      <td>10.12</td>\n",
       "      <td>4.32</td>\n",
       "      <td>36.28</td>\n",
       "      <td>45.86</td>\n",
       "      <td>9.64</td>\n",
       "      <td>13.16</td>\n",
       "      <td>10.00</td>\n",
       "      <td>12.84</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>601601</td>\n",
       "      <td>中国太保</td>\n",
       "      <td>保险</td>\n",
       "      <td>8.76</td>\n",
       "      <td>1.49</td>\n",
       "      <td>0.93</td>\n",
       "      <td>3.80</td>\n",
       "      <td>53.09</td>\n",
       "      <td>4.51</td>\n",
       "      <td>6.06</td>\n",
       "      <td>7.84</td>\n",
       "      <td>53.42</td>\n",
       "      <td>14.49</td>\n",
       "      <td>55.00</td>\n",
       "      <td>13.05</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            代码  股票名称  所属行业    PE     PB  EPS_x  收入同比增长  利润同比增长   ROE    净利率  \\\n",
       "成长性                                                                           \n",
       "亏损  14  600588  用友网络  软件服务  0.00  21.46  -0.07  -13.06 -389.30 -3.41 -21.84   \n",
       "    33  601857  中国石油  石油开采  0.00   0.67  -0.09  -14.41 -258.46 -1.33  -3.18   \n",
       "    37  600028  中国石化  石油加工  0.00   0.68  -0.16  -22.59 -234.00 -2.77  -3.56   \n",
       "低成长 29  600016  民生银行    银行  3.68   0.52   0.38   12.48    5.43  3.09  33.75   \n",
       "    34  601328  交通银行    银行  4.14   0.50   0.25    4.67    1.80  2.64  33.00   \n",
       "    22  600000  浦发银行    银行  4.45   0.60   0.56   10.66    5.48  3.01  31.32   \n",
       "高成长 32  601166  兴业银行    银行  3.92   0.65   1.01    5.54    6.75  3.72  41.75   \n",
       "    18  600036  招商银行    银行  8.39   1.53   1.10   11.44   10.12  4.32  36.28   \n",
       "    10  601601  中国太保    保险  8.76   1.49   0.93    3.80   53.09  4.51   6.06   \n",
       "\n",
       "          毛利率  净利润增长率%  净资产增长率%  每股收益增长率%   估值系数  成长性  \n",
       "成长性                                                    \n",
       "亏损  14  46.39  -352.50     8.94   -433.33   0.00   亏损  \n",
       "    33  16.41  -183.22     0.14   -258.93   0.00   亏损  \n",
       "    37  10.12  -213.86    -3.90   -233.61   0.00   亏损  \n",
       "低成长 29  40.77     5.28    22.45      5.56   1.91  低成长  \n",
       "    34  37.49     0.91    13.20    -10.71   2.07  低成长  \n",
       "    22  37.39     5.44    17.60      5.66   2.67  低成长  \n",
       "高成长 32  48.06     6.90    17.15      6.32   2.55  高成长  \n",
       "    18  45.86     9.64    13.16     10.00  12.84  高成长  \n",
       "    10   7.84    53.42    14.49     55.00  13.05  高成长  "
      ]
     },
     "execution_count": 78,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_grouped = data_merged.groupby('成长性').apply(group_func)\n",
    "data_grouped"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 79,
   "metadata": {},
   "outputs": [],
   "source": [
    "data_grouped_industry = data_merged.groupby('所属行业').apply(group_func)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 80,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS_x</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "      <th>估值系数</th>\n",
       "      <th>成长性</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>所属行业</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>乳制品</th>\n",
       "      <th>42</th>\n",
       "      <td>600887</td>\n",
       "      <td>伊利股份</td>\n",
       "      <td>乳制品</td>\n",
       "      <td>48.46</td>\n",
       "      <td>8.23</td>\n",
       "      <td>0.19</td>\n",
       "      <td>-10.98</td>\n",
       "      <td>-49.78</td>\n",
       "      <td>4.25</td>\n",
       "      <td>5.56</td>\n",
       "      <td>37.46</td>\n",
       "      <td>-49.47</td>\n",
       "      <td>2.14</td>\n",
       "      <td>-48.65</td>\n",
       "      <td>398.83</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"3\" valign=\"top\">保险</th>\n",
       "      <th>10</th>\n",
       "      <td>601601</td>\n",
       "      <td>中国太保</td>\n",
       "      <td>保险</td>\n",
       "      <td>8.76</td>\n",
       "      <td>1.49</td>\n",
       "      <td>0.93</td>\n",
       "      <td>3.80</td>\n",
       "      <td>53.09</td>\n",
       "      <td>4.51</td>\n",
       "      <td>6.06</td>\n",
       "      <td>7.84</td>\n",
       "      <td>53.42</td>\n",
       "      <td>14.49</td>\n",
       "      <td>55.00</td>\n",
       "      <td>13.05</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>601319</td>\n",
       "      <td>中国人保</td>\n",
       "      <td>保险</td>\n",
       "      <td>11.37</td>\n",
       "      <td>1.71</td>\n",
       "      <td>0.16</td>\n",
       "      <td>3.21</td>\n",
       "      <td>19.94</td>\n",
       "      <td>3.75</td>\n",
       "      <td>4.18</td>\n",
       "      <td>7.18</td>\n",
       "      <td>21.18</td>\n",
       "      <td>12.35</td>\n",
       "      <td>23.08</td>\n",
       "      <td>19.44</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>1.49</td>\n",
       "      <td>37.49</td>\n",
       "      <td>37.66</td>\n",
       "      <td>5.28</td>\n",
       "      <td>6.80</td>\n",
       "      <td>8.19</td>\n",
       "      <td>37.65</td>\n",
       "      <td>19.74</td>\n",
       "      <td>37.96</td>\n",
       "      <td>20.87</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>元器件</th>\n",
       "      <th>35</th>\n",
       "      <td>603160</td>\n",
       "      <td>汇顶科技</td>\n",
       "      <td>元器件</td>\n",
       "      <td>115.67</td>\n",
       "      <td>14.11</td>\n",
       "      <td>0.44</td>\n",
       "      <td>10.27</td>\n",
       "      <td>-50.58</td>\n",
       "      <td>3.05</td>\n",
       "      <td>15.15</td>\n",
       "      <td>50.17</td>\n",
       "      <td>-50.58</td>\n",
       "      <td>45.97</td>\n",
       "      <td>-51.65</td>\n",
       "      <td>1632.10</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>全国地产</th>\n",
       "      <th>8</th>\n",
       "      <td>600048</td>\n",
       "      <td>保利地产</td>\n",
       "      <td>全国地产</td>\n",
       "      <td>20.40</td>\n",
       "      <td>1.34</td>\n",
       "      <td>0.20</td>\n",
       "      <td>5.51</td>\n",
       "      <td>2.55</td>\n",
       "      <td>1.47</td>\n",
       "      <td>9.98</td>\n",
       "      <td>39.78</td>\n",
       "      <td>7.90</td>\n",
       "      <td>24.26</td>\n",
       "      <td>0.00</td>\n",
       "      <td>27.34</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"3\" valign=\"top\">化学制药</th>\n",
       "      <th>51</th>\n",
       "      <td>600196</td>\n",
       "      <td>复星医药</td>\n",
       "      <td>化学制药</td>\n",
       "      <td>71.49</td>\n",
       "      <td>5.04</td>\n",
       "      <td>0.22</td>\n",
       "      <td>-12.62</td>\n",
       "      <td>-18.97</td>\n",
       "      <td>1.76</td>\n",
       "      <td>9.81</td>\n",
       "      <td>55.13</td>\n",
       "      <td>-23.78</td>\n",
       "      <td>15.00</td>\n",
       "      <td>-17.86</td>\n",
       "      <td>360.31</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>44</th>\n",
       "      <td>600276</td>\n",
       "      <td>恒瑞医药</td>\n",
       "      <td>化学制药</td>\n",
       "      <td>90.50</td>\n",
       "      <td>18.15</td>\n",
       "      <td>0.50</td>\n",
       "      <td>12.79</td>\n",
       "      <td>10.34</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>9.39</td>\n",
       "      <td>28.16</td>\n",
       "      <td>7.41</td>\n",
       "      <td>1642.57</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>603259</td>\n",
       "      <td>药明康德</td>\n",
       "      <td>化学制药</td>\n",
       "      <td>222.24</td>\n",
       "      <td>14.11</td>\n",
       "      <td>0.19</td>\n",
       "      <td>15.09</td>\n",
       "      <td>-21.59</td>\n",
       "      <td>1.70</td>\n",
       "      <td>9.50</td>\n",
       "      <td>34.46</td>\n",
       "      <td>-26.22</td>\n",
       "      <td>-5.49</td>\n",
       "      <td>-42.42</td>\n",
       "      <td>3135.81</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>化工原料</th>\n",
       "      <th>46</th>\n",
       "      <td>600309</td>\n",
       "      <td>万华化学</td>\n",
       "      <td>化工原料</td>\n",
       "      <td>38.13</td>\n",
       "      <td>4.81</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-3.82</td>\n",
       "      <td>-50.74</td>\n",
       "      <td>3.15</td>\n",
       "      <td>8.97</td>\n",
       "      <td>20.09</td>\n",
       "      <td>-49.06</td>\n",
       "      <td>6.63</td>\n",
       "      <td>-50.56</td>\n",
       "      <td>183.41</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>半导体</th>\n",
       "      <th>4</th>\n",
       "      <td>600703</td>\n",
       "      <td>三安光电</td>\n",
       "      <td>半导体</td>\n",
       "      <td>79.81</td>\n",
       "      <td>5.14</td>\n",
       "      <td>0.10</td>\n",
       "      <td>-2.74</td>\n",
       "      <td>-36.95</td>\n",
       "      <td>1.76</td>\n",
       "      <td>23.28</td>\n",
       "      <td>28.24</td>\n",
       "      <td>-36.95</td>\n",
       "      <td>1.26</td>\n",
       "      <td>-33.33</td>\n",
       "      <td>410.22</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>家用电器</th>\n",
       "      <th>47</th>\n",
       "      <td>600690</td>\n",
       "      <td>海尔智家</td>\n",
       "      <td>家用电器</td>\n",
       "      <td>34.32</td>\n",
       "      <td>3.05</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-11.09</td>\n",
       "      <td>-50.16</td>\n",
       "      <td>2.20</td>\n",
       "      <td>2.48</td>\n",
       "      <td>27.44</td>\n",
       "      <td>-49.61</td>\n",
       "      <td>15.95</td>\n",
       "      <td>-51.34</td>\n",
       "      <td>104.68</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>小金属</th>\n",
       "      <th>50</th>\n",
       "      <td>603993</td>\n",
       "      <td>洛阳钼业</td>\n",
       "      <td>小金属</td>\n",
       "      <td>55.07</td>\n",
       "      <td>2.42</td>\n",
       "      <td>0.02</td>\n",
       "      <td>399.82</td>\n",
       "      <td>39.24</td>\n",
       "      <td>1.09</td>\n",
       "      <td>2.00</td>\n",
       "      <td>-5.16</td>\n",
       "      <td>64.49</td>\n",
       "      <td>0.83</td>\n",
       "      <td>40.00</td>\n",
       "      <td>133.27</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>工程机械</th>\n",
       "      <th>45</th>\n",
       "      <td>600031</td>\n",
       "      <td>三一重工</td>\n",
       "      <td>工程机械</td>\n",
       "      <td>20.31</td>\n",
       "      <td>3.82</td>\n",
       "      <td>0.26</td>\n",
       "      <td>-18.92</td>\n",
       "      <td>-31.90</td>\n",
       "      <td>4.72</td>\n",
       "      <td>12.70</td>\n",
       "      <td>28.17</td>\n",
       "      <td>-33.41</td>\n",
       "      <td>19.81</td>\n",
       "      <td>-36.93</td>\n",
       "      <td>77.58</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"2\" valign=\"top\">建筑工程</th>\n",
       "      <th>9</th>\n",
       "      <td>601668</td>\n",
       "      <td>中国建筑</td>\n",
       "      <td>建筑工程</td>\n",
       "      <td>7.23</td>\n",
       "      <td>0.83</td>\n",
       "      <td>0.18</td>\n",
       "      <td>-11.34</td>\n",
       "      <td>-14.51</td>\n",
       "      <td>2.87</td>\n",
       "      <td>2.87</td>\n",
       "      <td>9.25</td>\n",
       "      <td>-15.07</td>\n",
       "      <td>11.43</td>\n",
       "      <td>-14.29</td>\n",
       "      <td>6.00</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>601186</td>\n",
       "      <td>中国铁建</td>\n",
       "      <td>建筑工程</td>\n",
       "      <td>10.50</td>\n",
       "      <td>0.73</td>\n",
       "      <td>0.18</td>\n",
       "      <td>-7.63</td>\n",
       "      <td>-23.55</td>\n",
       "      <td>1.40</td>\n",
       "      <td>2.04</td>\n",
       "      <td>8.79</td>\n",
       "      <td>-19.06</td>\n",
       "      <td>25.58</td>\n",
       "      <td>-34.88</td>\n",
       "      <td>7.66</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>旅游服务</th>\n",
       "      <th>49</th>\n",
       "      <td>601888</td>\n",
       "      <td>中国中免</td>\n",
       "      <td>旅游服务</td>\n",
       "      <td>0.00</td>\n",
       "      <td>21.02</td>\n",
       "      <td>-0.06</td>\n",
       "      <td>-44.23</td>\n",
       "      <td>-105.21</td>\n",
       "      <td>-0.60</td>\n",
       "      <td>-1.57</td>\n",
       "      <td>42.55</td>\n",
       "      <td>-118.36</td>\n",
       "      <td>4.59</td>\n",
       "      <td>-105.21</td>\n",
       "      <td>0.00</td>\n",
       "      <td>亏损</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>机场</th>\n",
       "      <th>19</th>\n",
       "      <td>600009</td>\n",
       "      <td>上海机场</td>\n",
       "      <td>机场</td>\n",
       "      <td>409.30</td>\n",
       "      <td>4.11</td>\n",
       "      <td>0.04</td>\n",
       "      <td>-41.02</td>\n",
       "      <td>-94.21</td>\n",
       "      <td>0.25</td>\n",
       "      <td>4.92</td>\n",
       "      <td>0.95</td>\n",
       "      <td>-92.06</td>\n",
       "      <td>8.28</td>\n",
       "      <td>-94.44</td>\n",
       "      <td>1682.22</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>水泥</th>\n",
       "      <th>40</th>\n",
       "      <td>600585</td>\n",
       "      <td>海螺水泥</td>\n",
       "      <td>水泥</td>\n",
       "      <td>16.61</td>\n",
       "      <td>2.29</td>\n",
       "      <td>0.93</td>\n",
       "      <td>-23.91</td>\n",
       "      <td>-19.21</td>\n",
       "      <td>3.45</td>\n",
       "      <td>21.17</td>\n",
       "      <td>34.93</td>\n",
       "      <td>-20.25</td>\n",
       "      <td>20.09</td>\n",
       "      <td>-19.21</td>\n",
       "      <td>38.04</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>汽车整车</th>\n",
       "      <th>16</th>\n",
       "      <td>600104</td>\n",
       "      <td>上汽集团</td>\n",
       "      <td>汽车整车</td>\n",
       "      <td>47.69</td>\n",
       "      <td>0.86</td>\n",
       "      <td>0.10</td>\n",
       "      <td>-48.35</td>\n",
       "      <td>-86.42</td>\n",
       "      <td>0.44</td>\n",
       "      <td>1.10</td>\n",
       "      <td>10.87</td>\n",
       "      <td>-86.87</td>\n",
       "      <td>1.41</td>\n",
       "      <td>-86.40</td>\n",
       "      <td>41.01</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>煤炭开采</th>\n",
       "      <th>30</th>\n",
       "      <td>601088</td>\n",
       "      <td>中国神华</td>\n",
       "      <td>煤炭开采</td>\n",
       "      <td>7.84</td>\n",
       "      <td>0.85</td>\n",
       "      <td>0.49</td>\n",
       "      <td>-10.41</td>\n",
       "      <td>-22.09</td>\n",
       "      <td>2.70</td>\n",
       "      <td>19.20</td>\n",
       "      <td>40.75</td>\n",
       "      <td>-20.76</td>\n",
       "      <td>5.62</td>\n",
       "      <td>-22.12</td>\n",
       "      <td>6.66</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>电信运营</th>\n",
       "      <th>13</th>\n",
       "      <td>600050</td>\n",
       "      <td>中国联通</td>\n",
       "      <td>电信运营</td>\n",
       "      <td>28.34</td>\n",
       "      <td>1.10</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.93</td>\n",
       "      <td>-14.11</td>\n",
       "      <td>0.96</td>\n",
       "      <td>1.89</td>\n",
       "      <td>27.89</td>\n",
       "      <td>-13.85</td>\n",
       "      <td>1.74</td>\n",
       "      <td>-14.12</td>\n",
       "      <td>31.17</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>电气设备</th>\n",
       "      <th>23</th>\n",
       "      <td>601012</td>\n",
       "      <td>隆基股份</td>\n",
       "      <td>电气设备</td>\n",
       "      <td>29.69</td>\n",
       "      <td>7.50</td>\n",
       "      <td>0.49</td>\n",
       "      <td>50.60</td>\n",
       "      <td>204.92</td>\n",
       "      <td>6.31</td>\n",
       "      <td>21.67</td>\n",
       "      <td>31.87</td>\n",
       "      <td>193.11</td>\n",
       "      <td>72.45</td>\n",
       "      <td>122.73</td>\n",
       "      <td>222.68</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>白酒</th>\n",
       "      <th>39</th>\n",
       "      <td>600519</td>\n",
       "      <td>贵州茅台</td>\n",
       "      <td>白酒</td>\n",
       "      <td>45.41</td>\n",
       "      <td>14.96</td>\n",
       "      <td>17.99</td>\n",
       "      <td>11.31</td>\n",
       "      <td>13.29</td>\n",
       "      <td>8.78</td>\n",
       "      <td>53.65</td>\n",
       "      <td>91.67</td>\n",
       "      <td>16.34</td>\n",
       "      <td>20.42</td>\n",
       "      <td>16.69</td>\n",
       "      <td>679.33</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>石油加工</th>\n",
       "      <th>37</th>\n",
       "      <td>600028</td>\n",
       "      <td>中国石化</td>\n",
       "      <td>石油加工</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.68</td>\n",
       "      <td>-0.16</td>\n",
       "      <td>-22.59</td>\n",
       "      <td>-234.00</td>\n",
       "      <td>-2.77</td>\n",
       "      <td>-3.56</td>\n",
       "      <td>10.12</td>\n",
       "      <td>-213.86</td>\n",
       "      <td>-3.90</td>\n",
       "      <td>-233.61</td>\n",
       "      <td>0.00</td>\n",
       "      <td>亏损</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>石油开采</th>\n",
       "      <th>33</th>\n",
       "      <td>601857</td>\n",
       "      <td>中国石油</td>\n",
       "      <td>石油开采</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.67</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>-14.41</td>\n",
       "      <td>-258.46</td>\n",
       "      <td>-1.33</td>\n",
       "      <td>-3.18</td>\n",
       "      <td>16.41</td>\n",
       "      <td>-183.22</td>\n",
       "      <td>0.14</td>\n",
       "      <td>-258.93</td>\n",
       "      <td>0.00</td>\n",
       "      <td>亏损</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>船舶</th>\n",
       "      <th>43</th>\n",
       "      <td>601989</td>\n",
       "      <td>中国重工</td>\n",
       "      <td>船舶</td>\n",
       "      <td>285.28</td>\n",
       "      <td>1.35</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-25.67</td>\n",
       "      <td>-80.77</td>\n",
       "      <td>0.11</td>\n",
       "      <td>2.23</td>\n",
       "      <td>12.61</td>\n",
       "      <td>-80.70</td>\n",
       "      <td>0.67</td>\n",
       "      <td>-82.61</td>\n",
       "      <td>385.13</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"3\" valign=\"top\">证券</th>\n",
       "      <th>27</th>\n",
       "      <td>601688</td>\n",
       "      <td>华泰证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>16.57</td>\n",
       "      <td>1.53</td>\n",
       "      <td>0.32</td>\n",
       "      <td>9.87</td>\n",
       "      <td>3.90</td>\n",
       "      <td>2.30</td>\n",
       "      <td>42.07</td>\n",
       "      <td>55.33</td>\n",
       "      <td>3.75</td>\n",
       "      <td>18.83</td>\n",
       "      <td>-5.88</td>\n",
       "      <td>25.35</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>600837</td>\n",
       "      <td>海通证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>21.55</td>\n",
       "      <td>1.36</td>\n",
       "      <td>0.20</td>\n",
       "      <td>-29.81</td>\n",
       "      <td>-39.45</td>\n",
       "      <td>1.78</td>\n",
       "      <td>32.67</td>\n",
       "      <td>45.36</td>\n",
       "      <td>-44.29</td>\n",
       "      <td>5.97</td>\n",
       "      <td>-39.39</td>\n",
       "      <td>29.31</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>601211</td>\n",
       "      <td>国泰君安</td>\n",
       "      <td>证券</td>\n",
       "      <td>23.05</td>\n",
       "      <td>1.37</td>\n",
       "      <td>0.19</td>\n",
       "      <td>-8.22</td>\n",
       "      <td>-39.25</td>\n",
       "      <td>1.31</td>\n",
       "      <td>29.71</td>\n",
       "      <td>40.38</td>\n",
       "      <td>-44.03</td>\n",
       "      <td>7.40</td>\n",
       "      <td>-42.42</td>\n",
       "      <td>31.58</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>软件服务</th>\n",
       "      <th>14</th>\n",
       "      <td>600588</td>\n",
       "      <td>用友网络</td>\n",
       "      <td>软件服务</td>\n",
       "      <td>0.00</td>\n",
       "      <td>21.46</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>-13.06</td>\n",
       "      <td>-389.30</td>\n",
       "      <td>-3.41</td>\n",
       "      <td>-21.84</td>\n",
       "      <td>46.39</td>\n",
       "      <td>-352.50</td>\n",
       "      <td>8.94</td>\n",
       "      <td>-433.33</td>\n",
       "      <td>0.00</td>\n",
       "      <td>亏损</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"2\" valign=\"top\">通信设备</th>\n",
       "      <th>26</th>\n",
       "      <td>601138</td>\n",
       "      <td>工业富联</td>\n",
       "      <td>通信设备</td>\n",
       "      <td>38.33</td>\n",
       "      <td>3.14</td>\n",
       "      <td>0.09</td>\n",
       "      <td>-0.08</td>\n",
       "      <td>-35.01</td>\n",
       "      <td>2.05</td>\n",
       "      <td>2.33</td>\n",
       "      <td>6.79</td>\n",
       "      <td>-34.94</td>\n",
       "      <td>21.47</td>\n",
       "      <td>-40.00</td>\n",
       "      <td>120.36</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>600745</td>\n",
       "      <td>闻泰科技</td>\n",
       "      <td>通信设备</td>\n",
       "      <td>67.59</td>\n",
       "      <td>7.16</td>\n",
       "      <td>0.57</td>\n",
       "      <td>132.06</td>\n",
       "      <td>1379.54</td>\n",
       "      <td>2.93</td>\n",
       "      <td>5.60</td>\n",
       "      <td>17.75</td>\n",
       "      <td>681.85</td>\n",
       "      <td>103.33</td>\n",
       "      <td>714.29</td>\n",
       "      <td>483.94</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>铁路</th>\n",
       "      <th>24</th>\n",
       "      <td>601816</td>\n",
       "      <td>京沪高铁</td>\n",
       "      <td>铁路</td>\n",
       "      <td>237.12</td>\n",
       "      <td>1.67</td>\n",
       "      <td>0.01</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.17</td>\n",
       "      <td>6.28</td>\n",
       "      <td>21.10</td>\n",
       "      <td>-95.03</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-88.34</td>\n",
       "      <td>395.99</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"3\" valign=\"top\">银行</th>\n",
       "      <th>29</th>\n",
       "      <td>600016</td>\n",
       "      <td>民生银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>3.68</td>\n",
       "      <td>0.52</td>\n",
       "      <td>0.38</td>\n",
       "      <td>12.48</td>\n",
       "      <td>5.43</td>\n",
       "      <td>3.09</td>\n",
       "      <td>33.75</td>\n",
       "      <td>40.77</td>\n",
       "      <td>5.28</td>\n",
       "      <td>22.45</td>\n",
       "      <td>5.56</td>\n",
       "      <td>1.91</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>601328</td>\n",
       "      <td>交通银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>4.14</td>\n",
       "      <td>0.50</td>\n",
       "      <td>0.25</td>\n",
       "      <td>4.67</td>\n",
       "      <td>1.80</td>\n",
       "      <td>2.64</td>\n",
       "      <td>33.00</td>\n",
       "      <td>37.49</td>\n",
       "      <td>0.91</td>\n",
       "      <td>13.20</td>\n",
       "      <td>-10.71</td>\n",
       "      <td>2.07</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>601166</td>\n",
       "      <td>兴业银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>3.92</td>\n",
       "      <td>0.65</td>\n",
       "      <td>1.01</td>\n",
       "      <td>5.54</td>\n",
       "      <td>6.75</td>\n",
       "      <td>3.72</td>\n",
       "      <td>41.75</td>\n",
       "      <td>48.06</td>\n",
       "      <td>6.90</td>\n",
       "      <td>17.15</td>\n",
       "      <td>6.32</td>\n",
       "      <td>2.55</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>黄金</th>\n",
       "      <th>48</th>\n",
       "      <td>600547</td>\n",
       "      <td>山东黄金</td>\n",
       "      <td>黄金</td>\n",
       "      <td>59.37</td>\n",
       "      <td>5.63</td>\n",
       "      <td>0.18</td>\n",
       "      <td>28.70</td>\n",
       "      <td>57.94</td>\n",
       "      <td>2.37</td>\n",
       "      <td>4.03</td>\n",
       "      <td>12.49</td>\n",
       "      <td>54.37</td>\n",
       "      <td>11.88</td>\n",
       "      <td>5.88</td>\n",
       "      <td>334.25</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "             代码  股票名称  所属行业      PE     PB  EPS_x  收入同比增长   利润同比增长   ROE  \\\n",
       "所属行业                                                                       \n",
       "乳制品  42  600887  伊利股份   乳制品   48.46   8.23   0.19  -10.98   -49.78  4.25   \n",
       "保险   10  601601  中国太保    保险    8.76   1.49   0.93    3.80    53.09  4.51   \n",
       "     12  601319  中国人保    保险   11.37   1.71   0.16    3.21    19.94  3.75   \n",
       "     1   601336  新华保险    保险    9.94   2.10   1.49   37.49    37.66  5.28   \n",
       "元器件  35  603160  汇顶科技   元器件  115.67  14.11   0.44   10.27   -50.58  3.05   \n",
       "全国地产 8   600048  保利地产  全国地产   20.40   1.34   0.20    5.51     2.55  1.47   \n",
       "化学制药 51  600196  复星医药  化学制药   71.49   5.04   0.22  -12.62   -18.97  1.76   \n",
       "     44  600276  恒瑞医药  化学制药   90.50  18.15   0.50   12.79    10.34   NaN   \n",
       "     15  603259  药明康德  化学制药  222.24  14.11   0.19   15.09   -21.59  1.70   \n",
       "化工原料 46  600309  万华化学  化工原料   38.13   4.81   0.44   -3.82   -50.74  3.15   \n",
       "半导体  4   600703  三安光电   半导体   79.81   5.14   0.10   -2.74   -36.95  1.76   \n",
       "家用电器 47  600690  海尔智家  家用电器   34.32   3.05   0.16  -11.09   -50.16  2.20   \n",
       "小金属  50  603993  洛阳钼业   小金属   55.07   2.42   0.02  399.82    39.24  1.09   \n",
       "工程机械 45  600031  三一重工  工程机械   20.31   3.82   0.26  -18.92   -31.90  4.72   \n",
       "建筑工程 9   601668  中国建筑  建筑工程    7.23   0.83   0.18  -11.34   -14.51  2.87   \n",
       "     7   601186  中国铁建  建筑工程   10.50   0.73   0.18   -7.63   -23.55  1.40   \n",
       "旅游服务 49  601888  中国中免  旅游服务    0.00  21.02  -0.06  -44.23  -105.21 -0.60   \n",
       "机场   19  600009  上海机场    机场  409.30   4.11   0.04  -41.02   -94.21  0.25   \n",
       "水泥   40  600585  海螺水泥    水泥   16.61   2.29   0.93  -23.91   -19.21  3.45   \n",
       "汽车整车 16  600104  上汽集团  汽车整车   47.69   0.86   0.10  -48.35   -86.42  0.44   \n",
       "煤炭开采 30  601088  中国神华  煤炭开采    7.84   0.85   0.49  -10.41   -22.09  2.70   \n",
       "电信运营 13  600050  中国联通  电信运营   28.34   1.10   0.04    0.93   -14.11  0.96   \n",
       "电气设备 23  601012  隆基股份  电气设备   29.69   7.50   0.49   50.60   204.92  6.31   \n",
       "白酒   39  600519  贵州茅台    白酒   45.41  14.96  17.99   11.31    13.29  8.78   \n",
       "石油加工 37  600028  中国石化  石油加工    0.00   0.68  -0.16  -22.59  -234.00 -2.77   \n",
       "石油开采 33  601857  中国石油  石油开采    0.00   0.67  -0.09  -14.41  -258.46 -1.33   \n",
       "船舶   43  601989  中国重工    船舶  285.28   1.35   0.00  -25.67   -80.77  0.11   \n",
       "证券   27  601688  华泰证券    证券   16.57   1.53   0.32    9.87     3.90  2.30   \n",
       "     5   600837  海通证券    证券   21.55   1.36   0.20  -29.81   -39.45  1.78   \n",
       "     11  601211  国泰君安    证券   23.05   1.37   0.19   -8.22   -39.25  1.31   \n",
       "软件服务 14  600588  用友网络  软件服务    0.00  21.46  -0.07  -13.06  -389.30 -3.41   \n",
       "通信设备 26  601138  工业富联  通信设备   38.33   3.14   0.09   -0.08   -35.01  2.05   \n",
       "     28  600745  闻泰科技  通信设备   67.59   7.16   0.57  132.06  1379.54  2.93   \n",
       "铁路   24  601816  京沪高铁    铁路  237.12   1.67   0.01    0.00     0.00  0.17   \n",
       "银行   29  600016  民生银行    银行    3.68   0.52   0.38   12.48     5.43  3.09   \n",
       "     34  601328  交通银行    银行    4.14   0.50   0.25    4.67     1.80  2.64   \n",
       "     32  601166  兴业银行    银行    3.92   0.65   1.01    5.54     6.75  3.72   \n",
       "黄金   48  600547  山东黄金    黄金   59.37   5.63   0.18   28.70    57.94  2.37   \n",
       "\n",
       "           净利率    毛利率  净利润增长率%  净资产增长率%  每股收益增长率%     估值系数   成长性  \n",
       "所属行业                                                              \n",
       "乳制品  42   5.56  37.46   -49.47     2.14    -48.65   398.83   高成长  \n",
       "保险   10   6.06   7.84    53.42    14.49     55.00    13.05   高成长  \n",
       "     12   4.18   7.18    21.18    12.35     23.08    19.44   高成长  \n",
       "     1    6.80   8.19    37.65    19.74     37.96    20.87   高成长  \n",
       "元器件  35  15.15  50.17   -50.58    45.97    -51.65  1632.10   低成长  \n",
       "全国地产 8    9.98  39.78     7.90    24.26      0.00    27.34   低成长  \n",
       "化学制药 51   9.81  55.13   -23.78    15.00    -17.86   360.31   低成长  \n",
       "     44    NaN    NaN     9.39    28.16      7.41  1642.57  None  \n",
       "     15   9.50  34.46   -26.22    -5.49    -42.42  3135.81   低成长  \n",
       "化工原料 46   8.97  20.09   -49.06     6.63    -50.56   183.41   低成长  \n",
       "半导体  4   23.28  28.24   -36.95     1.26    -33.33   410.22   低成长  \n",
       "家用电器 47   2.48  27.44   -49.61    15.95    -51.34   104.68   低成长  \n",
       "小金属  50   2.00  -5.16    64.49     0.83     40.00   133.27   低成长  \n",
       "工程机械 45  12.70  28.17   -33.41    19.81    -36.93    77.58   高成长  \n",
       "建筑工程 9    2.87   9.25   -15.07    11.43    -14.29     6.00   低成长  \n",
       "     7    2.04   8.79   -19.06    25.58    -34.88     7.66   低成长  \n",
       "旅游服务 49  -1.57  42.55  -118.36     4.59   -105.21     0.00    亏损  \n",
       "机场   19   4.92   0.95   -92.06     8.28    -94.44  1682.22   低成长  \n",
       "水泥   40  21.17  34.93   -20.25    20.09    -19.21    38.04   低成长  \n",
       "汽车整车 16   1.10  10.87   -86.87     1.41    -86.40    41.01   低成长  \n",
       "煤炭开采 30  19.20  40.75   -20.76     5.62    -22.12     6.66   低成长  \n",
       "电信运营 13   1.89  27.89   -13.85     1.74    -14.12    31.17   低成长  \n",
       "电气设备 23  21.67  31.87   193.11    72.45    122.73   222.68   高成长  \n",
       "白酒   39  53.65  91.67    16.34    20.42     16.69   679.33   高成长  \n",
       "石油加工 37  -3.56  10.12  -213.86    -3.90   -233.61     0.00    亏损  \n",
       "石油开采 33  -3.18  16.41  -183.22     0.14   -258.93     0.00    亏损  \n",
       "船舶   43   2.23  12.61   -80.70     0.67    -82.61   385.13   低成长  \n",
       "证券   27  42.07  55.33     3.75    18.83     -5.88    25.35   低成长  \n",
       "     5   32.67  45.36   -44.29     5.97    -39.39    29.31   低成长  \n",
       "     11  29.71  40.38   -44.03     7.40    -42.42    31.58   低成长  \n",
       "软件服务 14 -21.84  46.39  -352.50     8.94   -433.33     0.00    亏损  \n",
       "通信设备 26   2.33   6.79   -34.94    21.47    -40.00   120.36   低成长  \n",
       "     28   5.60  17.75   681.85   103.33    714.29   483.94   低成长  \n",
       "铁路   24   6.28  21.10   -95.03      NaN    -88.34   395.99   低成长  \n",
       "银行   29  33.75  40.77     5.28    22.45      5.56     1.91   低成长  \n",
       "     34  33.00  37.49     0.91    13.20    -10.71     2.07   低成长  \n",
       "     32  41.75  48.06     6.90    17.15      6.32     2.55   高成长  \n",
       "黄金   48   4.03  12.49    54.37    11.88      5.88   334.25   低成长  "
      ]
     },
     "execution_count": 80,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_grouped_industry"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "4.数据的存储: HDF5, Hierarchical Data Format(HDF)是一种针对大量数据进行组织和存储的文件格式"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 87,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS_x</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "      <th>估值系数</th>\n",
       "      <th>成长性</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>601066</td>\n",
       "      <td>中信建投</td>\n",
       "      <td>证券</td>\n",
       "      <td>58.08</td>\n",
       "      <td>9.32</td>\n",
       "      <td>0.25</td>\n",
       "      <td>0.00</td>\n",
       "      <td>31.11</td>\n",
       "      <td>3.32</td>\n",
       "      <td>44.52</td>\n",
       "      <td>57.09</td>\n",
       "      <td>30.73</td>\n",
       "      <td>18.88</td>\n",
       "      <td>31.58</td>\n",
       "      <td>541.31</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>1.49</td>\n",
       "      <td>37.49</td>\n",
       "      <td>37.66</td>\n",
       "      <td>5.28</td>\n",
       "      <td>6.80</td>\n",
       "      <td>8.19</td>\n",
       "      <td>37.65</td>\n",
       "      <td>19.74</td>\n",
       "      <td>37.96</td>\n",
       "      <td>20.87</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>601236</td>\n",
       "      <td>红塔证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>42.76</td>\n",
       "      <td>5.98</td>\n",
       "      <td>0.13</td>\n",
       "      <td>152.45</td>\n",
       "      <td>135.77</td>\n",
       "      <td>3.49</td>\n",
       "      <td>42.41</td>\n",
       "      <td>54.12</td>\n",
       "      <td>128.85</td>\n",
       "      <td>NaN</td>\n",
       "      <td>116.67</td>\n",
       "      <td>255.70</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>601628</td>\n",
       "      <td>中国人寿</td>\n",
       "      <td>保险</td>\n",
       "      <td>16.64</td>\n",
       "      <td>2.80</td>\n",
       "      <td>0.60</td>\n",
       "      <td>8.18</td>\n",
       "      <td>-34.36</td>\n",
       "      <td>4.13</td>\n",
       "      <td>5.05</td>\n",
       "      <td>6.26</td>\n",
       "      <td>-33.88</td>\n",
       "      <td>13.55</td>\n",
       "      <td>-34.78</td>\n",
       "      <td>46.59</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>600703</td>\n",
       "      <td>三安光电</td>\n",
       "      <td>半导体</td>\n",
       "      <td>79.81</td>\n",
       "      <td>5.14</td>\n",
       "      <td>0.10</td>\n",
       "      <td>-2.74</td>\n",
       "      <td>-36.95</td>\n",
       "      <td>1.76</td>\n",
       "      <td>23.28</td>\n",
       "      <td>28.24</td>\n",
       "      <td>-36.95</td>\n",
       "      <td>1.26</td>\n",
       "      <td>-33.33</td>\n",
       "      <td>410.22</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       代码  股票名称 所属行业     PE    PB  EPS_x  收入同比增长  利润同比增长   ROE    净利率    毛利率  \\\n",
       "0  601066  中信建投   证券  58.08  9.32   0.25    0.00   31.11  3.32  44.52  57.09   \n",
       "1  601336  新华保险   保险   9.94  2.10   1.49   37.49   37.66  5.28   6.80   8.19   \n",
       "2  601236  红塔证券   证券  42.76  5.98   0.13  152.45  135.77  3.49  42.41  54.12   \n",
       "3  601628  中国人寿   保险  16.64  2.80   0.60    8.18  -34.36  4.13   5.05   6.26   \n",
       "4  600703  三安光电  半导体  79.81  5.14   0.10   -2.74  -36.95  1.76  23.28  28.24   \n",
       "\n",
       "   净利润增长率%  净资产增长率%  每股收益增长率%    估值系数  成长性  \n",
       "0    30.73    18.88     31.58  541.31  低成长  \n",
       "1    37.65    19.74     37.96   20.87  高成长  \n",
       "2   128.85      NaN    116.67  255.70  低成长  \n",
       "3   -33.88    13.55    -34.78   46.59  高成长  \n",
       "4   -36.95     1.26    -33.33  410.22  低成长  "
      ]
     },
     "execution_count": 87,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_merged.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 81,
   "metadata": {},
   "outputs": [],
   "source": [
    "hdf5 = pd.HDFStore('data_merged.h5', 'w')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 82,
   "metadata": {},
   "outputs": [],
   "source": [
    "hdf5['data'] = data_merged   #把刚刚从tushare上调取的并处理后的并数据存进HDF5文件里；"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 83,
   "metadata": {},
   "outputs": [],
   "source": [
    "hdf5.close()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 84,
   "metadata": {},
   "outputs": [],
   "source": [
    "hdf5 = pd.HDFStore('data_merged.h5', 'r')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 91,
   "metadata": {},
   "outputs": [],
   "source": [
    "data_m = hdf5['data']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 92,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS_x</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "      <th>估值系数</th>\n",
       "      <th>成长性</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>601066</td>\n",
       "      <td>中信建投</td>\n",
       "      <td>证券</td>\n",
       "      <td>58.08</td>\n",
       "      <td>9.32</td>\n",
       "      <td>0.25</td>\n",
       "      <td>0.00</td>\n",
       "      <td>31.11</td>\n",
       "      <td>3.32</td>\n",
       "      <td>44.52</td>\n",
       "      <td>57.09</td>\n",
       "      <td>30.73</td>\n",
       "      <td>18.88</td>\n",
       "      <td>31.58</td>\n",
       "      <td>541.31</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.10</td>\n",
       "      <td>1.49</td>\n",
       "      <td>37.49</td>\n",
       "      <td>37.66</td>\n",
       "      <td>5.28</td>\n",
       "      <td>6.80</td>\n",
       "      <td>8.19</td>\n",
       "      <td>37.65</td>\n",
       "      <td>19.74</td>\n",
       "      <td>37.96</td>\n",
       "      <td>20.87</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>601236</td>\n",
       "      <td>红塔证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>42.76</td>\n",
       "      <td>5.98</td>\n",
       "      <td>0.13</td>\n",
       "      <td>152.45</td>\n",
       "      <td>135.77</td>\n",
       "      <td>3.49</td>\n",
       "      <td>42.41</td>\n",
       "      <td>54.12</td>\n",
       "      <td>128.85</td>\n",
       "      <td>NaN</td>\n",
       "      <td>116.67</td>\n",
       "      <td>255.70</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>601628</td>\n",
       "      <td>中国人寿</td>\n",
       "      <td>保险</td>\n",
       "      <td>16.64</td>\n",
       "      <td>2.80</td>\n",
       "      <td>0.60</td>\n",
       "      <td>8.18</td>\n",
       "      <td>-34.36</td>\n",
       "      <td>4.13</td>\n",
       "      <td>5.05</td>\n",
       "      <td>6.26</td>\n",
       "      <td>-33.88</td>\n",
       "      <td>13.55</td>\n",
       "      <td>-34.78</td>\n",
       "      <td>46.59</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>600703</td>\n",
       "      <td>三安光电</td>\n",
       "      <td>半导体</td>\n",
       "      <td>79.81</td>\n",
       "      <td>5.14</td>\n",
       "      <td>0.10</td>\n",
       "      <td>-2.74</td>\n",
       "      <td>-36.95</td>\n",
       "      <td>1.76</td>\n",
       "      <td>23.28</td>\n",
       "      <td>28.24</td>\n",
       "      <td>-36.95</td>\n",
       "      <td>1.26</td>\n",
       "      <td>-33.33</td>\n",
       "      <td>410.22</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>600837</td>\n",
       "      <td>海通证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>21.55</td>\n",
       "      <td>1.36</td>\n",
       "      <td>0.20</td>\n",
       "      <td>-29.81</td>\n",
       "      <td>-39.45</td>\n",
       "      <td>1.78</td>\n",
       "      <td>32.67</td>\n",
       "      <td>45.36</td>\n",
       "      <td>-44.29</td>\n",
       "      <td>5.97</td>\n",
       "      <td>-39.39</td>\n",
       "      <td>29.31</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>600030</td>\n",
       "      <td>中信证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>26.33</td>\n",
       "      <td>2.42</td>\n",
       "      <td>0.32</td>\n",
       "      <td>22.14</td>\n",
       "      <td>-4.28</td>\n",
       "      <td>2.29</td>\n",
       "      <td>31.71</td>\n",
       "      <td>43.05</td>\n",
       "      <td>-3.07</td>\n",
       "      <td>12.07</td>\n",
       "      <td>-8.57</td>\n",
       "      <td>63.72</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>601186</td>\n",
       "      <td>中国铁建</td>\n",
       "      <td>建筑工程</td>\n",
       "      <td>10.50</td>\n",
       "      <td>0.73</td>\n",
       "      <td>0.18</td>\n",
       "      <td>-7.63</td>\n",
       "      <td>-23.55</td>\n",
       "      <td>1.40</td>\n",
       "      <td>2.04</td>\n",
       "      <td>8.79</td>\n",
       "      <td>-19.06</td>\n",
       "      <td>25.58</td>\n",
       "      <td>-34.88</td>\n",
       "      <td>7.66</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>600048</td>\n",
       "      <td>保利地产</td>\n",
       "      <td>全国地产</td>\n",
       "      <td>20.40</td>\n",
       "      <td>1.34</td>\n",
       "      <td>0.20</td>\n",
       "      <td>5.51</td>\n",
       "      <td>2.55</td>\n",
       "      <td>1.47</td>\n",
       "      <td>9.98</td>\n",
       "      <td>39.78</td>\n",
       "      <td>7.90</td>\n",
       "      <td>24.26</td>\n",
       "      <td>0.00</td>\n",
       "      <td>27.34</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>601668</td>\n",
       "      <td>中国建筑</td>\n",
       "      <td>建筑工程</td>\n",
       "      <td>7.23</td>\n",
       "      <td>0.83</td>\n",
       "      <td>0.18</td>\n",
       "      <td>-11.34</td>\n",
       "      <td>-14.51</td>\n",
       "      <td>2.87</td>\n",
       "      <td>2.87</td>\n",
       "      <td>9.25</td>\n",
       "      <td>-15.07</td>\n",
       "      <td>11.43</td>\n",
       "      <td>-14.29</td>\n",
       "      <td>6.00</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>601601</td>\n",
       "      <td>中国太保</td>\n",
       "      <td>保险</td>\n",
       "      <td>8.76</td>\n",
       "      <td>1.49</td>\n",
       "      <td>0.93</td>\n",
       "      <td>3.80</td>\n",
       "      <td>53.09</td>\n",
       "      <td>4.51</td>\n",
       "      <td>6.06</td>\n",
       "      <td>7.84</td>\n",
       "      <td>53.42</td>\n",
       "      <td>14.49</td>\n",
       "      <td>55.00</td>\n",
       "      <td>13.05</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>601211</td>\n",
       "      <td>国泰君安</td>\n",
       "      <td>证券</td>\n",
       "      <td>23.05</td>\n",
       "      <td>1.37</td>\n",
       "      <td>0.19</td>\n",
       "      <td>-8.22</td>\n",
       "      <td>-39.25</td>\n",
       "      <td>1.31</td>\n",
       "      <td>29.71</td>\n",
       "      <td>40.38</td>\n",
       "      <td>-44.03</td>\n",
       "      <td>7.40</td>\n",
       "      <td>-42.42</td>\n",
       "      <td>31.58</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>601319</td>\n",
       "      <td>中国人保</td>\n",
       "      <td>保险</td>\n",
       "      <td>11.37</td>\n",
       "      <td>1.71</td>\n",
       "      <td>0.16</td>\n",
       "      <td>3.21</td>\n",
       "      <td>19.94</td>\n",
       "      <td>3.75</td>\n",
       "      <td>4.18</td>\n",
       "      <td>7.18</td>\n",
       "      <td>21.18</td>\n",
       "      <td>12.35</td>\n",
       "      <td>23.08</td>\n",
       "      <td>19.44</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>600050</td>\n",
       "      <td>中国联通</td>\n",
       "      <td>电信运营</td>\n",
       "      <td>28.34</td>\n",
       "      <td>1.10</td>\n",
       "      <td>0.04</td>\n",
       "      <td>0.93</td>\n",
       "      <td>-14.11</td>\n",
       "      <td>0.96</td>\n",
       "      <td>1.89</td>\n",
       "      <td>27.89</td>\n",
       "      <td>-13.85</td>\n",
       "      <td>1.74</td>\n",
       "      <td>-14.12</td>\n",
       "      <td>31.17</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>600588</td>\n",
       "      <td>用友网络</td>\n",
       "      <td>软件服务</td>\n",
       "      <td>0.00</td>\n",
       "      <td>21.46</td>\n",
       "      <td>-0.07</td>\n",
       "      <td>-13.06</td>\n",
       "      <td>-389.30</td>\n",
       "      <td>-3.41</td>\n",
       "      <td>-21.84</td>\n",
       "      <td>46.39</td>\n",
       "      <td>-352.50</td>\n",
       "      <td>8.94</td>\n",
       "      <td>-433.33</td>\n",
       "      <td>0.00</td>\n",
       "      <td>亏损</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>603259</td>\n",
       "      <td>药明康德</td>\n",
       "      <td>化学制药</td>\n",
       "      <td>222.24</td>\n",
       "      <td>14.11</td>\n",
       "      <td>0.19</td>\n",
       "      <td>15.09</td>\n",
       "      <td>-21.59</td>\n",
       "      <td>1.70</td>\n",
       "      <td>9.50</td>\n",
       "      <td>34.46</td>\n",
       "      <td>-26.22</td>\n",
       "      <td>-5.49</td>\n",
       "      <td>-42.42</td>\n",
       "      <td>3135.81</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>600104</td>\n",
       "      <td>上汽集团</td>\n",
       "      <td>汽车整车</td>\n",
       "      <td>47.69</td>\n",
       "      <td>0.86</td>\n",
       "      <td>0.10</td>\n",
       "      <td>-48.35</td>\n",
       "      <td>-86.42</td>\n",
       "      <td>0.44</td>\n",
       "      <td>1.10</td>\n",
       "      <td>10.87</td>\n",
       "      <td>-86.87</td>\n",
       "      <td>1.41</td>\n",
       "      <td>-86.40</td>\n",
       "      <td>41.01</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>600036</td>\n",
       "      <td>招商银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>8.39</td>\n",
       "      <td>1.53</td>\n",
       "      <td>1.10</td>\n",
       "      <td>11.44</td>\n",
       "      <td>10.12</td>\n",
       "      <td>4.32</td>\n",
       "      <td>36.28</td>\n",
       "      <td>45.86</td>\n",
       "      <td>9.64</td>\n",
       "      <td>13.16</td>\n",
       "      <td>10.00</td>\n",
       "      <td>12.84</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>600009</td>\n",
       "      <td>上海机场</td>\n",
       "      <td>机场</td>\n",
       "      <td>409.30</td>\n",
       "      <td>4.11</td>\n",
       "      <td>0.04</td>\n",
       "      <td>-41.02</td>\n",
       "      <td>-94.21</td>\n",
       "      <td>0.25</td>\n",
       "      <td>4.92</td>\n",
       "      <td>0.95</td>\n",
       "      <td>-92.06</td>\n",
       "      <td>8.28</td>\n",
       "      <td>-94.44</td>\n",
       "      <td>1682.22</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>601318</td>\n",
       "      <td>中国平安</td>\n",
       "      <td>保险</td>\n",
       "      <td>13.50</td>\n",
       "      <td>2.04</td>\n",
       "      <td>1.47</td>\n",
       "      <td>-13.22</td>\n",
       "      <td>-42.74</td>\n",
       "      <td>3.77</td>\n",
       "      <td>7.94</td>\n",
       "      <td>11.42</td>\n",
       "      <td>-38.50</td>\n",
       "      <td>23.28</td>\n",
       "      <td>-42.35</td>\n",
       "      <td>27.54</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>600000</td>\n",
       "      <td>浦发银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>4.45</td>\n",
       "      <td>0.60</td>\n",
       "      <td>0.56</td>\n",
       "      <td>10.66</td>\n",
       "      <td>5.48</td>\n",
       "      <td>3.01</td>\n",
       "      <td>31.32</td>\n",
       "      <td>37.39</td>\n",
       "      <td>5.44</td>\n",
       "      <td>17.60</td>\n",
       "      <td>5.66</td>\n",
       "      <td>2.67</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>601012</td>\n",
       "      <td>隆基股份</td>\n",
       "      <td>电气设备</td>\n",
       "      <td>29.69</td>\n",
       "      <td>7.50</td>\n",
       "      <td>0.49</td>\n",
       "      <td>50.60</td>\n",
       "      <td>204.92</td>\n",
       "      <td>6.31</td>\n",
       "      <td>21.67</td>\n",
       "      <td>31.87</td>\n",
       "      <td>193.11</td>\n",
       "      <td>72.45</td>\n",
       "      <td>122.73</td>\n",
       "      <td>222.68</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>601816</td>\n",
       "      <td>京沪高铁</td>\n",
       "      <td>铁路</td>\n",
       "      <td>237.12</td>\n",
       "      <td>1.67</td>\n",
       "      <td>0.01</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.17</td>\n",
       "      <td>6.28</td>\n",
       "      <td>21.10</td>\n",
       "      <td>-95.03</td>\n",
       "      <td>NaN</td>\n",
       "      <td>-88.34</td>\n",
       "      <td>395.99</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>601818</td>\n",
       "      <td>光大银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>4.66</td>\n",
       "      <td>0.61</td>\n",
       "      <td>0.19</td>\n",
       "      <td>10.23</td>\n",
       "      <td>11.28</td>\n",
       "      <td>2.72</td>\n",
       "      <td>29.03</td>\n",
       "      <td>35.15</td>\n",
       "      <td>11.51</td>\n",
       "      <td>19.62</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.84</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>601138</td>\n",
       "      <td>工业富联</td>\n",
       "      <td>通信设备</td>\n",
       "      <td>38.33</td>\n",
       "      <td>3.14</td>\n",
       "      <td>0.09</td>\n",
       "      <td>-0.08</td>\n",
       "      <td>-35.01</td>\n",
       "      <td>2.05</td>\n",
       "      <td>2.33</td>\n",
       "      <td>6.79</td>\n",
       "      <td>-34.94</td>\n",
       "      <td>21.47</td>\n",
       "      <td>-40.00</td>\n",
       "      <td>120.36</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>601688</td>\n",
       "      <td>华泰证券</td>\n",
       "      <td>证券</td>\n",
       "      <td>16.57</td>\n",
       "      <td>1.53</td>\n",
       "      <td>0.32</td>\n",
       "      <td>9.87</td>\n",
       "      <td>3.90</td>\n",
       "      <td>2.30</td>\n",
       "      <td>42.07</td>\n",
       "      <td>55.33</td>\n",
       "      <td>3.75</td>\n",
       "      <td>18.83</td>\n",
       "      <td>-5.88</td>\n",
       "      <td>25.35</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>600745</td>\n",
       "      <td>闻泰科技</td>\n",
       "      <td>通信设备</td>\n",
       "      <td>67.59</td>\n",
       "      <td>7.16</td>\n",
       "      <td>0.57</td>\n",
       "      <td>132.06</td>\n",
       "      <td>1379.54</td>\n",
       "      <td>2.93</td>\n",
       "      <td>5.60</td>\n",
       "      <td>17.75</td>\n",
       "      <td>681.85</td>\n",
       "      <td>103.33</td>\n",
       "      <td>714.29</td>\n",
       "      <td>483.94</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>600016</td>\n",
       "      <td>民生银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>3.68</td>\n",
       "      <td>0.52</td>\n",
       "      <td>0.38</td>\n",
       "      <td>12.48</td>\n",
       "      <td>5.43</td>\n",
       "      <td>3.09</td>\n",
       "      <td>33.75</td>\n",
       "      <td>40.77</td>\n",
       "      <td>5.28</td>\n",
       "      <td>22.45</td>\n",
       "      <td>5.56</td>\n",
       "      <td>1.91</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>601088</td>\n",
       "      <td>中国神华</td>\n",
       "      <td>煤炭开采</td>\n",
       "      <td>7.84</td>\n",
       "      <td>0.85</td>\n",
       "      <td>0.49</td>\n",
       "      <td>-10.41</td>\n",
       "      <td>-22.09</td>\n",
       "      <td>2.70</td>\n",
       "      <td>19.20</td>\n",
       "      <td>40.75</td>\n",
       "      <td>-20.76</td>\n",
       "      <td>5.62</td>\n",
       "      <td>-22.12</td>\n",
       "      <td>6.66</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>601658</td>\n",
       "      <td>邮储银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>5.04</td>\n",
       "      <td>0.78</td>\n",
       "      <td>0.23</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "      <td>3.09</td>\n",
       "      <td>27.84</td>\n",
       "      <td>31.35</td>\n",
       "      <td>8.39</td>\n",
       "      <td>31.88</td>\n",
       "      <td>0.00</td>\n",
       "      <td>3.93</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>601166</td>\n",
       "      <td>兴业银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>3.92</td>\n",
       "      <td>0.65</td>\n",
       "      <td>1.01</td>\n",
       "      <td>5.54</td>\n",
       "      <td>6.75</td>\n",
       "      <td>3.72</td>\n",
       "      <td>41.75</td>\n",
       "      <td>48.06</td>\n",
       "      <td>6.90</td>\n",
       "      <td>17.15</td>\n",
       "      <td>6.32</td>\n",
       "      <td>2.55</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33</th>\n",
       "      <td>601857</td>\n",
       "      <td>中国石油</td>\n",
       "      <td>石油开采</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.67</td>\n",
       "      <td>-0.09</td>\n",
       "      <td>-14.41</td>\n",
       "      <td>-258.46</td>\n",
       "      <td>-1.33</td>\n",
       "      <td>-3.18</td>\n",
       "      <td>16.41</td>\n",
       "      <td>-183.22</td>\n",
       "      <td>0.14</td>\n",
       "      <td>-258.93</td>\n",
       "      <td>0.00</td>\n",
       "      <td>亏损</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>601328</td>\n",
       "      <td>交通银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>4.14</td>\n",
       "      <td>0.50</td>\n",
       "      <td>0.25</td>\n",
       "      <td>4.67</td>\n",
       "      <td>1.80</td>\n",
       "      <td>2.64</td>\n",
       "      <td>33.00</td>\n",
       "      <td>37.49</td>\n",
       "      <td>0.91</td>\n",
       "      <td>13.20</td>\n",
       "      <td>-10.71</td>\n",
       "      <td>2.07</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35</th>\n",
       "      <td>603160</td>\n",
       "      <td>汇顶科技</td>\n",
       "      <td>元器件</td>\n",
       "      <td>115.67</td>\n",
       "      <td>14.11</td>\n",
       "      <td>0.44</td>\n",
       "      <td>10.27</td>\n",
       "      <td>-50.58</td>\n",
       "      <td>3.05</td>\n",
       "      <td>15.15</td>\n",
       "      <td>50.17</td>\n",
       "      <td>-50.58</td>\n",
       "      <td>45.97</td>\n",
       "      <td>-51.65</td>\n",
       "      <td>1632.10</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>36</th>\n",
       "      <td>601988</td>\n",
       "      <td>中国银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>4.69</td>\n",
       "      <td>0.58</td>\n",
       "      <td>0.17</td>\n",
       "      <td>5.01</td>\n",
       "      <td>3.17</td>\n",
       "      <td>2.72</td>\n",
       "      <td>35.50</td>\n",
       "      <td>46.22</td>\n",
       "      <td>2.80</td>\n",
       "      <td>13.25</td>\n",
       "      <td>0.00</td>\n",
       "      <td>2.72</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>37</th>\n",
       "      <td>600028</td>\n",
       "      <td>中国石化</td>\n",
       "      <td>石油加工</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.68</td>\n",
       "      <td>-0.16</td>\n",
       "      <td>-22.59</td>\n",
       "      <td>-234.00</td>\n",
       "      <td>-2.77</td>\n",
       "      <td>-3.56</td>\n",
       "      <td>10.12</td>\n",
       "      <td>-213.86</td>\n",
       "      <td>-3.90</td>\n",
       "      <td>-233.61</td>\n",
       "      <td>0.00</td>\n",
       "      <td>亏损</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>38</th>\n",
       "      <td>601398</td>\n",
       "      <td>工商银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>5.26</td>\n",
       "      <td>0.69</td>\n",
       "      <td>0.24</td>\n",
       "      <td>-3.62</td>\n",
       "      <td>3.04</td>\n",
       "      <td>3.05</td>\n",
       "      <td>37.22</td>\n",
       "      <td>47.07</td>\n",
       "      <td>2.81</td>\n",
       "      <td>14.46</td>\n",
       "      <td>4.35</td>\n",
       "      <td>3.63</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>39</th>\n",
       "      <td>600519</td>\n",
       "      <td>贵州茅台</td>\n",
       "      <td>白酒</td>\n",
       "      <td>45.41</td>\n",
       "      <td>14.96</td>\n",
       "      <td>17.99</td>\n",
       "      <td>11.31</td>\n",
       "      <td>13.29</td>\n",
       "      <td>8.78</td>\n",
       "      <td>53.65</td>\n",
       "      <td>91.67</td>\n",
       "      <td>16.34</td>\n",
       "      <td>20.42</td>\n",
       "      <td>16.69</td>\n",
       "      <td>679.33</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>40</th>\n",
       "      <td>600585</td>\n",
       "      <td>海螺水泥</td>\n",
       "      <td>水泥</td>\n",
       "      <td>16.61</td>\n",
       "      <td>2.29</td>\n",
       "      <td>0.93</td>\n",
       "      <td>-23.91</td>\n",
       "      <td>-19.21</td>\n",
       "      <td>3.45</td>\n",
       "      <td>21.17</td>\n",
       "      <td>34.93</td>\n",
       "      <td>-20.25</td>\n",
       "      <td>20.09</td>\n",
       "      <td>-19.21</td>\n",
       "      <td>38.04</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>41</th>\n",
       "      <td>601288</td>\n",
       "      <td>农业银行</td>\n",
       "      <td>银行</td>\n",
       "      <td>4.40</td>\n",
       "      <td>0.62</td>\n",
       "      <td>0.18</td>\n",
       "      <td>7.90</td>\n",
       "      <td>4.79</td>\n",
       "      <td>3.17</td>\n",
       "      <td>34.37</td>\n",
       "      <td>43.62</td>\n",
       "      <td>3.61</td>\n",
       "      <td>17.00</td>\n",
       "      <td>5.88</td>\n",
       "      <td>2.73</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>42</th>\n",
       "      <td>600887</td>\n",
       "      <td>伊利股份</td>\n",
       "      <td>乳制品</td>\n",
       "      <td>48.46</td>\n",
       "      <td>8.23</td>\n",
       "      <td>0.19</td>\n",
       "      <td>-10.98</td>\n",
       "      <td>-49.78</td>\n",
       "      <td>4.25</td>\n",
       "      <td>5.56</td>\n",
       "      <td>37.46</td>\n",
       "      <td>-49.47</td>\n",
       "      <td>2.14</td>\n",
       "      <td>-48.65</td>\n",
       "      <td>398.83</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>43</th>\n",
       "      <td>601989</td>\n",
       "      <td>中国重工</td>\n",
       "      <td>船舶</td>\n",
       "      <td>285.28</td>\n",
       "      <td>1.35</td>\n",
       "      <td>0.00</td>\n",
       "      <td>-25.67</td>\n",
       "      <td>-80.77</td>\n",
       "      <td>0.11</td>\n",
       "      <td>2.23</td>\n",
       "      <td>12.61</td>\n",
       "      <td>-80.70</td>\n",
       "      <td>0.67</td>\n",
       "      <td>-82.61</td>\n",
       "      <td>385.13</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>44</th>\n",
       "      <td>600276</td>\n",
       "      <td>恒瑞医药</td>\n",
       "      <td>化学制药</td>\n",
       "      <td>90.50</td>\n",
       "      <td>18.15</td>\n",
       "      <td>0.50</td>\n",
       "      <td>12.79</td>\n",
       "      <td>10.34</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>9.39</td>\n",
       "      <td>28.16</td>\n",
       "      <td>7.41</td>\n",
       "      <td>1642.57</td>\n",
       "      <td>None</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>45</th>\n",
       "      <td>600031</td>\n",
       "      <td>三一重工</td>\n",
       "      <td>工程机械</td>\n",
       "      <td>20.31</td>\n",
       "      <td>3.82</td>\n",
       "      <td>0.26</td>\n",
       "      <td>-18.92</td>\n",
       "      <td>-31.90</td>\n",
       "      <td>4.72</td>\n",
       "      <td>12.70</td>\n",
       "      <td>28.17</td>\n",
       "      <td>-33.41</td>\n",
       "      <td>19.81</td>\n",
       "      <td>-36.93</td>\n",
       "      <td>77.58</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>46</th>\n",
       "      <td>600309</td>\n",
       "      <td>万华化学</td>\n",
       "      <td>化工原料</td>\n",
       "      <td>38.13</td>\n",
       "      <td>4.81</td>\n",
       "      <td>0.44</td>\n",
       "      <td>-3.82</td>\n",
       "      <td>-50.74</td>\n",
       "      <td>3.15</td>\n",
       "      <td>8.97</td>\n",
       "      <td>20.09</td>\n",
       "      <td>-49.06</td>\n",
       "      <td>6.63</td>\n",
       "      <td>-50.56</td>\n",
       "      <td>183.41</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>47</th>\n",
       "      <td>600690</td>\n",
       "      <td>海尔智家</td>\n",
       "      <td>家用电器</td>\n",
       "      <td>34.32</td>\n",
       "      <td>3.05</td>\n",
       "      <td>0.16</td>\n",
       "      <td>-11.09</td>\n",
       "      <td>-50.16</td>\n",
       "      <td>2.20</td>\n",
       "      <td>2.48</td>\n",
       "      <td>27.44</td>\n",
       "      <td>-49.61</td>\n",
       "      <td>15.95</td>\n",
       "      <td>-51.34</td>\n",
       "      <td>104.68</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>48</th>\n",
       "      <td>600547</td>\n",
       "      <td>山东黄金</td>\n",
       "      <td>黄金</td>\n",
       "      <td>59.37</td>\n",
       "      <td>5.63</td>\n",
       "      <td>0.18</td>\n",
       "      <td>28.70</td>\n",
       "      <td>57.94</td>\n",
       "      <td>2.37</td>\n",
       "      <td>4.03</td>\n",
       "      <td>12.49</td>\n",
       "      <td>54.37</td>\n",
       "      <td>11.88</td>\n",
       "      <td>5.88</td>\n",
       "      <td>334.25</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>49</th>\n",
       "      <td>601888</td>\n",
       "      <td>中国中免</td>\n",
       "      <td>旅游服务</td>\n",
       "      <td>0.00</td>\n",
       "      <td>21.02</td>\n",
       "      <td>-0.06</td>\n",
       "      <td>-44.23</td>\n",
       "      <td>-105.21</td>\n",
       "      <td>-0.60</td>\n",
       "      <td>-1.57</td>\n",
       "      <td>42.55</td>\n",
       "      <td>-118.36</td>\n",
       "      <td>4.59</td>\n",
       "      <td>-105.21</td>\n",
       "      <td>0.00</td>\n",
       "      <td>亏损</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>50</th>\n",
       "      <td>603993</td>\n",
       "      <td>洛阳钼业</td>\n",
       "      <td>小金属</td>\n",
       "      <td>55.07</td>\n",
       "      <td>2.42</td>\n",
       "      <td>0.02</td>\n",
       "      <td>399.82</td>\n",
       "      <td>39.24</td>\n",
       "      <td>1.09</td>\n",
       "      <td>2.00</td>\n",
       "      <td>-5.16</td>\n",
       "      <td>64.49</td>\n",
       "      <td>0.83</td>\n",
       "      <td>40.00</td>\n",
       "      <td>133.27</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>51</th>\n",
       "      <td>600196</td>\n",
       "      <td>复星医药</td>\n",
       "      <td>化学制药</td>\n",
       "      <td>71.49</td>\n",
       "      <td>5.04</td>\n",
       "      <td>0.22</td>\n",
       "      <td>-12.62</td>\n",
       "      <td>-18.97</td>\n",
       "      <td>1.76</td>\n",
       "      <td>9.81</td>\n",
       "      <td>55.13</td>\n",
       "      <td>-23.78</td>\n",
       "      <td>15.00</td>\n",
       "      <td>-17.86</td>\n",
       "      <td>360.31</td>\n",
       "      <td>低成长</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        代码  股票名称  所属行业      PE     PB  EPS_x  收入同比增长   利润同比增长   ROE    净利率  \\\n",
       "0   601066  中信建投    证券   58.08   9.32   0.25    0.00    31.11  3.32  44.52   \n",
       "1   601336  新华保险    保险    9.94   2.10   1.49   37.49    37.66  5.28   6.80   \n",
       "2   601236  红塔证券    证券   42.76   5.98   0.13  152.45   135.77  3.49  42.41   \n",
       "3   601628  中国人寿    保险   16.64   2.80   0.60    8.18   -34.36  4.13   5.05   \n",
       "4   600703  三安光电   半导体   79.81   5.14   0.10   -2.74   -36.95  1.76  23.28   \n",
       "5   600837  海通证券    证券   21.55   1.36   0.20  -29.81   -39.45  1.78  32.67   \n",
       "6   600030  中信证券    证券   26.33   2.42   0.32   22.14    -4.28  2.29  31.71   \n",
       "7   601186  中国铁建  建筑工程   10.50   0.73   0.18   -7.63   -23.55  1.40   2.04   \n",
       "8   600048  保利地产  全国地产   20.40   1.34   0.20    5.51     2.55  1.47   9.98   \n",
       "9   601668  中国建筑  建筑工程    7.23   0.83   0.18  -11.34   -14.51  2.87   2.87   \n",
       "10  601601  中国太保    保险    8.76   1.49   0.93    3.80    53.09  4.51   6.06   \n",
       "11  601211  国泰君安    证券   23.05   1.37   0.19   -8.22   -39.25  1.31  29.71   \n",
       "12  601319  中国人保    保险   11.37   1.71   0.16    3.21    19.94  3.75   4.18   \n",
       "13  600050  中国联通  电信运营   28.34   1.10   0.04    0.93   -14.11  0.96   1.89   \n",
       "14  600588  用友网络  软件服务    0.00  21.46  -0.07  -13.06  -389.30 -3.41 -21.84   \n",
       "15  603259  药明康德  化学制药  222.24  14.11   0.19   15.09   -21.59  1.70   9.50   \n",
       "16  600104  上汽集团  汽车整车   47.69   0.86   0.10  -48.35   -86.42  0.44   1.10   \n",
       "18  600036  招商银行    银行    8.39   1.53   1.10   11.44    10.12  4.32  36.28   \n",
       "19  600009  上海机场    机场  409.30   4.11   0.04  -41.02   -94.21  0.25   4.92   \n",
       "21  601318  中国平安    保险   13.50   2.04   1.47  -13.22   -42.74  3.77   7.94   \n",
       "22  600000  浦发银行    银行    4.45   0.60   0.56   10.66     5.48  3.01  31.32   \n",
       "23  601012  隆基股份  电气设备   29.69   7.50   0.49   50.60   204.92  6.31  21.67   \n",
       "24  601816  京沪高铁    铁路  237.12   1.67   0.01    0.00     0.00  0.17   6.28   \n",
       "25  601818  光大银行    银行    4.66   0.61   0.19   10.23    11.28  2.72  29.03   \n",
       "26  601138  工业富联  通信设备   38.33   3.14   0.09   -0.08   -35.01  2.05   2.33   \n",
       "27  601688  华泰证券    证券   16.57   1.53   0.32    9.87     3.90  2.30  42.07   \n",
       "28  600745  闻泰科技  通信设备   67.59   7.16   0.57  132.06  1379.54  2.93   5.60   \n",
       "29  600016  民生银行    银行    3.68   0.52   0.38   12.48     5.43  3.09  33.75   \n",
       "30  601088  中国神华  煤炭开采    7.84   0.85   0.49  -10.41   -22.09  2.70  19.20   \n",
       "31  601658  邮储银行    银行    5.04   0.78   0.23    0.00     0.00  3.09  27.84   \n",
       "32  601166  兴业银行    银行    3.92   0.65   1.01    5.54     6.75  3.72  41.75   \n",
       "33  601857  中国石油  石油开采    0.00   0.67  -0.09  -14.41  -258.46 -1.33  -3.18   \n",
       "34  601328  交通银行    银行    4.14   0.50   0.25    4.67     1.80  2.64  33.00   \n",
       "35  603160  汇顶科技   元器件  115.67  14.11   0.44   10.27   -50.58  3.05  15.15   \n",
       "36  601988  中国银行    银行    4.69   0.58   0.17    5.01     3.17  2.72  35.50   \n",
       "37  600028  中国石化  石油加工    0.00   0.68  -0.16  -22.59  -234.00 -2.77  -3.56   \n",
       "38  601398  工商银行    银行    5.26   0.69   0.24   -3.62     3.04  3.05  37.22   \n",
       "39  600519  贵州茅台    白酒   45.41  14.96  17.99   11.31    13.29  8.78  53.65   \n",
       "40  600585  海螺水泥    水泥   16.61   2.29   0.93  -23.91   -19.21  3.45  21.17   \n",
       "41  601288  农业银行    银行    4.40   0.62   0.18    7.90     4.79  3.17  34.37   \n",
       "42  600887  伊利股份   乳制品   48.46   8.23   0.19  -10.98   -49.78  4.25   5.56   \n",
       "43  601989  中国重工    船舶  285.28   1.35   0.00  -25.67   -80.77  0.11   2.23   \n",
       "44  600276  恒瑞医药  化学制药   90.50  18.15   0.50   12.79    10.34   NaN    NaN   \n",
       "45  600031  三一重工  工程机械   20.31   3.82   0.26  -18.92   -31.90  4.72  12.70   \n",
       "46  600309  万华化学  化工原料   38.13   4.81   0.44   -3.82   -50.74  3.15   8.97   \n",
       "47  600690  海尔智家  家用电器   34.32   3.05   0.16  -11.09   -50.16  2.20   2.48   \n",
       "48  600547  山东黄金    黄金   59.37   5.63   0.18   28.70    57.94  2.37   4.03   \n",
       "49  601888  中国中免  旅游服务    0.00  21.02  -0.06  -44.23  -105.21 -0.60  -1.57   \n",
       "50  603993  洛阳钼业   小金属   55.07   2.42   0.02  399.82    39.24  1.09   2.00   \n",
       "51  600196  复星医药  化学制药   71.49   5.04   0.22  -12.62   -18.97  1.76   9.81   \n",
       "\n",
       "      毛利率  净利润增长率%  净资产增长率%  每股收益增长率%     估值系数   成长性  \n",
       "0   57.09    30.73    18.88     31.58   541.31   低成长  \n",
       "1    8.19    37.65    19.74     37.96    20.87   高成长  \n",
       "2   54.12   128.85      NaN    116.67   255.70   低成长  \n",
       "3    6.26   -33.88    13.55    -34.78    46.59   高成长  \n",
       "4   28.24   -36.95     1.26    -33.33   410.22   低成长  \n",
       "5   45.36   -44.29     5.97    -39.39    29.31   低成长  \n",
       "6   43.05    -3.07    12.07     -8.57    63.72   低成长  \n",
       "7    8.79   -19.06    25.58    -34.88     7.66   低成长  \n",
       "8   39.78     7.90    24.26      0.00    27.34   低成长  \n",
       "9    9.25   -15.07    11.43    -14.29     6.00   低成长  \n",
       "10   7.84    53.42    14.49     55.00    13.05   高成长  \n",
       "11  40.38   -44.03     7.40    -42.42    31.58   低成长  \n",
       "12   7.18    21.18    12.35     23.08    19.44   高成长  \n",
       "13  27.89   -13.85     1.74    -14.12    31.17   低成长  \n",
       "14  46.39  -352.50     8.94   -433.33     0.00    亏损  \n",
       "15  34.46   -26.22    -5.49    -42.42  3135.81   低成长  \n",
       "16  10.87   -86.87     1.41    -86.40    41.01   低成长  \n",
       "18  45.86     9.64    13.16     10.00    12.84   高成长  \n",
       "19   0.95   -92.06     8.28    -94.44  1682.22   低成长  \n",
       "21  11.42   -38.50    23.28    -42.35    27.54   高成长  \n",
       "22  37.39     5.44    17.60      5.66     2.67   低成长  \n",
       "23  31.87   193.11    72.45    122.73   222.68   高成长  \n",
       "24  21.10   -95.03      NaN    -88.34   395.99   低成长  \n",
       "25  35.15    11.51    19.62      0.00     2.84   低成长  \n",
       "26   6.79   -34.94    21.47    -40.00   120.36   低成长  \n",
       "27  55.33     3.75    18.83     -5.88    25.35   低成长  \n",
       "28  17.75   681.85   103.33    714.29   483.94   低成长  \n",
       "29  40.77     5.28    22.45      5.56     1.91   低成长  \n",
       "30  40.75   -20.76     5.62    -22.12     6.66   低成长  \n",
       "31  31.35     8.39    31.88      0.00     3.93   低成长  \n",
       "32  48.06     6.90    17.15      6.32     2.55   高成长  \n",
       "33  16.41  -183.22     0.14   -258.93     0.00    亏损  \n",
       "34  37.49     0.91    13.20    -10.71     2.07   低成长  \n",
       "35  50.17   -50.58    45.97    -51.65  1632.10   低成长  \n",
       "36  46.22     2.80    13.25      0.00     2.72   低成长  \n",
       "37  10.12  -213.86    -3.90   -233.61     0.00    亏损  \n",
       "38  47.07     2.81    14.46      4.35     3.63   低成长  \n",
       "39  91.67    16.34    20.42     16.69   679.33   高成长  \n",
       "40  34.93   -20.25    20.09    -19.21    38.04   低成长  \n",
       "41  43.62     3.61    17.00      5.88     2.73   低成长  \n",
       "42  37.46   -49.47     2.14    -48.65   398.83   高成长  \n",
       "43  12.61   -80.70     0.67    -82.61   385.13   低成长  \n",
       "44    NaN     9.39    28.16      7.41  1642.57  None  \n",
       "45  28.17   -33.41    19.81    -36.93    77.58   高成长  \n",
       "46  20.09   -49.06     6.63    -50.56   183.41   低成长  \n",
       "47  27.44   -49.61    15.95    -51.34   104.68   低成长  \n",
       "48  12.49    54.37    11.88      5.88   334.25   低成长  \n",
       "49  42.55  -118.36     4.59   -105.21     0.00    亏损  \n",
       "50  -5.16    64.49     0.83     40.00   133.27   低成长  \n",
       "51  55.13   -23.78    15.00    -17.86   360.31   低成长  "
      ]
     },
     "execution_count": 92,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_m"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 88,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>代码</th>\n",
       "      <th>股票名称</th>\n",
       "      <th>所属行业</th>\n",
       "      <th>PE</th>\n",
       "      <th>PB</th>\n",
       "      <th>EPS_x</th>\n",
       "      <th>收入同比增长</th>\n",
       "      <th>利润同比增长</th>\n",
       "      <th>ROE</th>\n",
       "      <th>净利率</th>\n",
       "      <th>毛利率</th>\n",
       "      <th>净利润增长率%</th>\n",
       "      <th>净资产增长率%</th>\n",
       "      <th>每股收益增长率%</th>\n",
       "      <th>估值系数</th>\n",
       "      <th>成长性</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>601336</td>\n",
       "      <td>新华保险</td>\n",
       "      <td>保险</td>\n",
       "      <td>9.94</td>\n",
       "      <td>2.1</td>\n",
       "      <td>1.49</td>\n",
       "      <td>37.49</td>\n",
       "      <td>37.66</td>\n",
       "      <td>5.28</td>\n",
       "      <td>6.80</td>\n",
       "      <td>8.19</td>\n",
       "      <td>37.65</td>\n",
       "      <td>19.74</td>\n",
       "      <td>37.96</td>\n",
       "      <td>20.87</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>601012</td>\n",
       "      <td>隆基股份</td>\n",
       "      <td>电气设备</td>\n",
       "      <td>29.69</td>\n",
       "      <td>7.5</td>\n",
       "      <td>0.49</td>\n",
       "      <td>50.60</td>\n",
       "      <td>204.92</td>\n",
       "      <td>6.31</td>\n",
       "      <td>21.67</td>\n",
       "      <td>31.87</td>\n",
       "      <td>193.11</td>\n",
       "      <td>72.45</td>\n",
       "      <td>122.73</td>\n",
       "      <td>222.68</td>\n",
       "      <td>高成长</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        代码  股票名称  所属行业     PE   PB  EPS_x  收入同比增长  利润同比增长   ROE    净利率    毛利率  \\\n",
       "1   601336  新华保险    保险   9.94  2.1   1.49   37.49   37.66  5.28   6.80   8.19   \n",
       "23  601012  隆基股份  电气设备  29.69  7.5   0.49   50.60  204.92  6.31  21.67  31.87   \n",
       "\n",
       "    净利润增长率%  净资产增长率%  每股收益增长率%    估值系数  成长性  \n",
       "1     37.65    19.74     37.96   20.87  高成长  \n",
       "23   193.11    72.45    122.73  222.68  高成长  "
      ]
     },
     "execution_count": 88,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_m[(data_m['ROE']>5) & (data_m['净利润增长率%']>20)]   #数据库调取数据并进行多条件选股； and so on..."
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
